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