Common Lisp Package: CL-POSTGRES-IEEE-FLOATS

README:

FUNCTION

Public

Undocumented

DECODE-FLOAT32 (BITS)

DECODE-FLOAT64 (BITS)

ENCODE-FLOAT32 (FLOAT)

ENCODE-FLOAT64 (FLOAT)

MACRO

Public

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.