[erlang-questions] Maths Problem -> 2452.45*100. = 245244.99999999997

Hynek Vychodil vychodil.hynek@REDACTED
Mon Dec 2 13:58:10 CET 2013


Yep. Sorry, I should insert more clue that it was irony.

H.


On Mon, Dec 2, 2013 at 1:20 AM, Richard A. O'Keefe <ok@REDACTED>wrote:

>
> On 1/12/2013, at 5:51 AM, Hynek Vychodil wrote:
> > But dc computes precise
> >
> > $ dc <<<"20k2452.45 100*245245-p"
> > 0
> >
> > $ dc <<<"20k28 85*312*5*0.85/p"
> > 4368000.00000000000000000000
>
> That's hardly surprising.
> dc(1) implements *decimal* floating point,
> though not IEEE decimal floating point.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131202/888744e3/attachment.htm>


More information about the erlang-questions mailing list