Earlier quoted context omitted.
> That's not really a JS problem, that's a floating point problem More accurately it's a binary problem. 0.1 and 0.3 have non-terminating representations in binary, so it's completely irrelevant whether you're using fixed or floating point. Any number that can be represented as the sum of powers of 2 and 5 have a terminating decimal representation, whereas only numbers that can be represented as the sum of powers of…
No, it is problem for any base. For example decimal system can represent 1/5,1/4, 1/8 and 1/2 properly. But, what about 1/3, 1/7, 1/6, 1/9 as decimal numbers with finite number of digits. This will be a problem for any base representation when it has to be boxed in finite number of digits or memory. One good thing is decimal is widely used format, so it is good to go with that for representing stuff. But, it is more…
I think there are arguments to use decimal as representation is there, (where I originally came to know about this problem) [1].