← All articles

Units of measure — Decimals, not floats

Conversion factors and converted values are held as decimals end to end, in C# and in the database. Binary floating point is how 0.30000000000000004 ends up in front of somebody on an invoice, and it is not used here. Each unit also carries the number of decimal places to show when a value is displayed in it — a display setting, not a storage one.
Nothing here answered it? Ask us directly — we usually reply within one working day.

Made with RowFold