[erlang-questions] float_to_binary?

Steve Davis steven.charles.davis@REDACTED
Tue Jan 27 13:41:33 CET 2009


I'm probably being dumb, but I am stuck...

to_binary(X) when is_integer(X) -> <<X>>;
to_binary(X) when is_float(X) -> ??.

...btw attempting to use erlang:float_to_binary(X, 64) turned out to be 
a very bad idea (computer just went POP!).

Thanks for any assistance!
/s



More information about the erlang-questions mailing list