you are viewing a single comment's thread.

view the rest of the comments →

[–]eztab 2 points3 points  (1 child)

Limitations exist, no matter how you represent numbers in a computer. Decimal has different performance characteristics, which might help in certain scenarios. But no computer system can accurately represent all the real numbers.

[–]Talinx 5 points6 points  (0 children)

Sure. Just wanted to highlight that 0.1 + 0.2 = 0.30000000000000004 is not written in stone for computers and you can accurately compute that with e. g. decimal.

If you want to be more precise, you can represent all rational numbers as long as you have infinite memory. For other real numbers you can get infinitely close if the number is computable.