Skip to content

Commit f2bf3b6

Browse files
committed
Using string constructor
1 parent 57053c5 commit f2bf3b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/fmt_format.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
int main()
1212
{
13-
constexpr boost::decimal::decimal64_t val1 {314, -2};
14-
constexpr boost::decimal::decimal32_t val2 {3141, -3};
13+
constexpr boost::decimal::decimal64_t val1 {"3.14"};
14+
constexpr boost::decimal::decimal32_t val2 {"3.141"};
1515

1616
// The easiest is no specification which is general format
1717
// Given these values they will print in fixed format

0 commit comments

Comments
 (0)