[][src]Module bigbit::headbyte

The Head Byte format, capable of storing integers and fractions up to ±1.34078079e+281.

It's recommended to use this format instead of Extended Head Byte if you're accepting numbers from potentially untrusted locations, since Head Byte imposes a size limit (which is still extremely big, suiting most use cases) while Extended Head Byte does not.

Structs

Exponent

An exponent for the Head Byte format.

HBNum

The Head Byte format, capable of storing integers and fractions up to ±1.34078079e+281.

HeadByte

The Head Byte itself, containing information about the sign, presence of the exponent and the number of coefficients.

InvalidExponentError

The error marker for when 0b10000000 is encountered in the TryFrom implementation of Exponent.