Converting reals

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu