(no title)
bfrink
|
5 years ago
Agree - real world discrete things should be modeled as such. If MPV was $0.23, then model $0.23 increments - whether you use fixed point, or the cardinality of increments, who cares. But all the other math leading up to a discrete decision on the increment is almost certain to be best described with, and faster to implement in, floats.
proverbialbunny|5 years ago
https://stackoverflow.com/questions/2550281/floating-point-v...
Floats were not historically adopted for speed, but because you can get more decimal places with small numbers like 8 bit numbers.
Today with 64 and 128 bit numbers, floating point loses most of its historical benefit, but of course it still has its benefits.