I was experimenting with floating points, and I came across something weird. I did
8.00000000000000100000.toFixed(20)
in the console and got
8.00000000000000177636
How is this possible? I heard floating points round, but this doesn't seem rounded. Does it have to do with the conversion to a string in toFixed
?