3 ms·
We usually store the values as longs and apply the decimal marker only when showing to the user. Floats are fine when it's just long to float. But any operation
by bluepizza 5y ago
We usually store the values as longs and apply the decimal marker only when showing to the user. Floats are fine when it's just long to float. But any operation between two floats is a mistake.
- carnitine 5y agoNot for financial modelling which is the bulk of work in the front office. Everything is calculated as floats for performance reasons, no model is accurate enough for floating point error to matter.