float_to_list question

Mickael Remond mikl@REDACTED
Sat Dec 30 16:33:24 CET 2000

I must be missing something but here is what I get from the float_to_list
built-in function:

 12> float_to_list(1.0).

Ok. That seems nice.

 13> float_to_list(1.1).

Oh Oh. I was expecting:

 14> float_to_list(1.2).

Weird ! I was expecting:

Can someone help me to understand this strange results ?


More information about the erlang-questions mailing list