3 ms·
In what context couldn't you just use an integer?
by xigoi 4y ago
In what context couldn't you just use an integer?
- wruza 4y agoMultiplication context maybe?
- dx034 4y agoYou can multiply and use integers but it's a bit ugly. Especially if you work across systems, you'll always need to store notations on the multiplier used. Having a decimal as a built in type with that information stored would be much easier. But in the end I tend to use that for most numbers, especially as compression in time series also often better works on integers than floats if you have gradual changes in the numbers.