[erlang-questions] binary_to_float: <<"2e-1">> versus <<"2.0e-1">>

Anthony Ramine n.oxyde@REDACTED
Fri Jan 30 11:03:16 CET 2015

Le 30 janv. 2015 à 09:25, Peter Morgan <peter.james.morgan@REDACTED> a écrit :

> Any good reason why in binary_to_float with a scientific notation the coefficient must be a float?

binary_to_float/1 follows the format of floats in Erlang. 2e-1 is illegal syntax in Erlang so binary_to_float/1 crashes on it.


More information about the erlang-questions mailing list