clj-cbor.data.float16

Implementation of IEEE 754 half-precision floating point.

decode

(decode x)

Returns a float value read as a half-precision IEEE floating-point number from the lower two bytes of x.

encode

(encode x)

Returns an integer whose lower two bytes encode the given number in the half-precision IEEE floating point format.

negative-infinity

not-a-number

positive-infinity

zero