From: clyne Date: Sun, 28 Jun 2020 16:33:42 +0000 (-0400) Subject: Update README.md X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=703b3fb5b0d4db4b590874a64fd97c828aa85190;p=clyne%2Fconstexpr-to-string.git Update README.md --- diff --git a/README.md b/README.md index 1dd7663..75ad580 100644 --- a/README.md +++ b/README.md @@ -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: -``` +```cpp puts(f_to_string<3.1415926>); // Defaults to 5-point precision: "3.14159" puts(f_to_string<{3.1415926, 7}>); // Specify precision: "3.1415926" ```