[erlang-questions] Float to binary

Richard O'Keefe ok@REDACTED
Mon Mar 21 22:24:48 CET 2011


On 22/03/2011, at 3:09 AM, Bob Cowdery wrote:

> If I have a float value. This happens to be a frequency in MHz which I
> need to convert to a 32 bit integer big-endian format in Hz

What do you actually mean?
What is the range of values?
What is their precision?
Why won't a simple

	round(The_Frequency * Scaling_Factor)

do the job?




More information about the erlang-questions mailing list