Skip to content

Commit ca2a61b

Browse files
committed
Add example from wikipedia
1 parent 3efc2b5 commit ca2a61b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/decimal/overview.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ These are referred to as cohorts which binary does not have as there is only one
2626

2727
The use case for Decimal Floating Point numbers is where rounding errors are significantly impactful such as finance.
2828
In applications where integer or fixed-point arithmetic are used to combat this issue Decimal Floating Point numbers can provide a significantly greater range of values.
29+
For example, while a fixed-point representation that allocates 8 decimal digits and 2 decimal places can represent the numbers 123456.78, 8765.43, 123.00, and so on, a floating-point representation with 8 decimal digits could also represent 1.2345678, 1234567.8, 0.000012345678, 12345678000000000, and so on.
2930

3031
== Supported Compilers
3132

0 commit comments

Comments
 (0)