ieee-floats

API Reference

ieee-floats

Convert floating point values to IEEE 754 binary representation

IEEE-FLOATS

  • Macro MAKE-FLOAT-CONVERTERS (encoder-name decoder-name exponent-bits significand-bits support-nan-and-infinity-p)
    Writes an encoder and decoder function for floating point numbers with the given amount of exponent and significand bits (plus an extra sign bit). If support-nan-and-infinity-p is true, the decoders will also understand these special cases. NaN is represented as :not-a-number, and the infinities as :positive-infinity and :negative-infinity. Note that this means that the in- or output of these functions is not just floating point numbers anymore, but also keywords.
  • Function ENCODE-FLOAT32 (float)
  • Function DECODE-FLOAT32 (bits)
  • Function ENCODE-FLOAT64 (float)
  • Function DECODE-FLOAT64 (bits)