Open grantfitzsimmons opened 1 year ago
It's a shame that the SQL standard does not provide a SCIENTIFIC or MEASUREMENT type to represent such data. In principle we could represent the values using multiple columns (or a composite type if we ever switch to postgres) comprising the mantissa decimal(n+1, n)
, exponent integer
, precision non negative integer
, and possible estimated_final non negative integer
values and add a database function or generated field to cast the value to native types as needed for ordering or computations.
See: https://en.wikipedia.org/wiki/Scientific_notation and in particular: https://en.wikipedia.org/wiki/Scientific_notation#Significant_figures
Original Asana task
Specify should be able to use a coordinate precision value (entered by the user) which can be used to determine the correct level of detail with which to report/display coordinate values.
Requested By: Mark Wallace at CSIRO