RefLib

Reference library for AI

Back

postgresql_16:9.6.39.3 Precision

PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > seg — a datatype for line segments or floating point intervals > Precision

seg values are stored internally as pairs of 32-bit floating point numbers. This means that numbers with more than 7 significant digits will be truncated.

Numbers with 7 or fewer significant digits retain their original precision. That is, if your query returns 0.00, you will be sure that the trailing zeroes are not the artifacts of formatting: they reflect the precision of the original data. The number of leading zeroes does not affect precision: the value 0.0067 is considered to have just 2 significant digits.

Back