From 008c71381c542880589ad742e9d6005e143e46da Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Sun, 13 Feb 2022 23:43:38 +0100 Subject: [PATCH] Changed example to show float formatting --- examples/src/examples.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/examples.cpp b/examples/src/examples.cpp index 08862a5..5edb7ff 100644 --- a/examples/src/examples.cpp +++ b/examples/src/examples.cpp @@ -5,7 +5,7 @@ using namespace const_fmt; int main() { - constexpr auto s = "abcdef {:09.2}"_const_fmt(-876.3); + constexpr auto s = "This is an integer: {:08}, and this is a float: {:09.4}"_const_fmt(12345, -86.2); // Convert s (with a type of 'std::array') into something // writable to std::cout