2 ms·
If it's not a float or integer, it's a string.
by dannyw 5y ago
If it's not a float or integer, it's a string.
- deleted 5y ago[deleted]
- quesera 5y agoAnd if it's currency, it should be an integer not a float.
- bob1029 5y agoWe use decimals for all currency and rate properties. Integer is fine in many cases too.
- quesera 5y agoBe careful with floats: 20.40 == (20.39 + 0.01) => false ("decimal" can either be colloqually-equivalent to "float", or it can refer to a distinct data type which is supported by some languages and databases. A proper decimal type is currency-safe to use, if available.)