This pull request adds support for f32 and f64 numbers. The implementation is kept lean and simple in the spirit of the project. Even with this addition, there is no panic branch when compiling the release version.
The simple implementation leads to deviations from std::format. For example, the maximum number of digits (before and after the decimal point) is limited to 19. Details can be found in tests/vs-std-write.rs.
However, this implementation should be usable for the vast majority of applications.
This pull request adds support for f32 and f64 numbers. The implementation is kept lean and simple in the spirit of the project. Even with this addition, there is no panic branch when compiling the release version.
The simple implementation leads to deviations from std::format. For example, the maximum number of digits (before and after the decimal point) is limited to 19. Details can be found in tests/vs-std-write.rs.
However, this implementation should be usable for the vast majority of applications.