Update README.md

pull/3/head
Clyne 4 years ago committed by GitHub
parent c606eaa166
commit 703b3fb5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ Try it [on Compiler Explorer](https://godbolt.org/z/T-MFoh).
`f_to_string.hpp`, requiring C++20, provides an `f_to_string` utility for floating-point conversion: `f_to_string.hpp`, requiring C++20, provides an `f_to_string` utility for floating-point conversion:
``` ```cpp
puts(f_to_string<3.1415926>); // Defaults to 5-point precision: "3.14159" puts(f_to_string<3.1415926>); // Defaults to 5-point precision: "3.14159"
puts(f_to_string<{3.1415926, 7}>); // Specify precision: "3.1415926" puts(f_to_string<{3.1415926, 7}>); // Specify precision: "3.1415926"
``` ```

Loading…
Cancel
Save