Converting reals
- Posted by Irv Mullins <irv at ELLIJAY.COM> Feb 09, 1999
- 632 views
Can anyone write a Euphoria function to convert a
48 bit Pascal real to Euphoria atom?
Format is: msb..................................lsb
bit 1 = sign
bits 2..39 = f
bits 40..48 = e
The formula given is :
if 0 < e <= 255 then v = (-1)s * 2(e-129) * (1.f)
^ ^
the s and e-129 are superscripts.
Thanks,
Irv

