[erlang-questions] Reading a float from standard input

Donald Steven t6sn7gt@REDACTED
Sun May 29 17:00:34 CEST 2016


Hi all,

(Newbie question)

The following works: {X, _} = 
string:to_float(string:strip(io:get_line("X: "), right, $\n)),

but is there a less cumbersome way to read a float from the standard input?

Thanks.

Don






More information about the erlang-questions mailing list