[erlang-questions] Float multiplication behaviours

Steve Vinoski vinoski@REDACTED
Mon Apr 23 19:46:14 CEST 2012


On Mon, Apr 23, 2012 at 1:37 PM, Juan Puig
<juan.puig.martinez@REDACTED> wrote:
> Hello there,
>
> we are running Erlang R15B (erts-5.9). Any fact that could demonstrate the following behaviour?
>
> (node@REDACTED)51> 1.20*100.
> 120.0
> (node@REDACTED)49> 10.20*100.
> 1019.9999999999999
> (node@REDACTED)50> 100.20*100.
> 10020.0

http://floating-point-gui.de/

--steve



More information about the erlang-questions mailing list