[erlang-questions] convert strings like "1e-8" to floats.
Richard A. O'Keefe
Thu Feb 9 05:33:19 CET 2017
On 9/02/17 4:35 AM, Jesper Louis Andersen wrote:
> Another example is OCaml, which supports entering integers as
> # 1_000_000;;
> - : int = 1000000
> which is very nifty, but unique to OCaml and thus not too portable.
*Not* unique to OCaml. Allowed by Ada and ISO Pascal Extended and
Quintus Prolog and Eiffel and F# and >>> Java <<< amongst others.
Fortran (pre Fortran 95) and Algol (60 and 68) allowed embedded
spaces in number literals. _ is a little safer...
More information about the erlang-questions