in reply to Re: floating point addition
in thread floating point addition
The user interface is a little awkward, mainly because gcc does not provide strtod64 or strtod128 functions, and does not provide any (s)printf formatters for the _Decimal64 and _Decimal128 type.C:\>perl -MMath::Decimal64 -le "$x=Math::Decimal64->new(0); $x += Math +::Decimal64->new('20.1') for (1..43);print $x;" 8643e-1
But I don't want to add overloading of NVs as that would defeat the purpose.perl -MMath::Decimal64 -le "$x=Math::Decimal64->new(0); $x += '20.1' f +or (1..43);print $x;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: floating point addition
by RonW (Parson) on Jan 13, 2015 at 00:15 UTC | |
by syphilis (Archbishop) on Jan 13, 2015 at 01:52 UTC |