Skip to content

Instantly share code, notes, and snippets.

View lendle's full-sized avatar

Sam Lendle lendle

  • UC Berkeley
  • Berkeley, CA
View GitHub Profile
import Base.convert
bitstype 64 IBMFloat64
# ibm float format is hex based:
# * bit 1 = sign
# * bits 2-8 = exponent to the power of 16, with bias of 64
# * bits 9-64 = mantissa: no implied leading 1 (unlike ieee),
# typically normalised (hex of bits 9-12 is non-zero), though this need
# not be the case