postgleam/codec/numeric
PostgreSQL numeric codec (binary format).
Wire: ndigits(int16) weight(int16) sign(uint16) dscale(int16) digits(uint16[ndigits]), base-10000 digits. Special signs: NaN 0xC000, +Infinity 0xD000, -Infinity 0xF000.
Values are represented as decimal strings to keep arbitrary precision.
Values
pub fn decode(data: BitArray) -> Result(value.Value, String)
pub fn encode(val: value.Value) -> Result(BitArray, String)
pub fn matcher() -> codec.CodecMatcher