We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c87e27 commit 883b289Copy full SHA for 883b289
examples/addition.cpp
@@ -22,7 +22,7 @@ int main()
22
// We now add 0.1 1000 times which should result exactly in 100
23
// What we actually find is that the decimal32_t value does result in exactly 100
24
// With type float the result is not 100 due to inexact representation
25
- for (int i {0}; i < 1000; ++i)
+ for (int i {}; i < 1000; ++i)
26
{
27
decimal_value += decimal_one_tenth; // Decimal types support compound arithmetic as expected
28
float_value += float_one_tenth;
0 commit comments