Exact Postgres NUMERIC values: decimal text in, the binary wire format (base-10000 digits, weight, sign, display scale) out, and back, with NaN and the infinities. No precision is lost in either direction.
NUMERIC
NaN