Round to the nearest hundrendth, broken

Just check the code of the stock in stock buy and sell and wait for it to make a crazy value like 1.6000000000000000000001. I don’t know why the round to hundredth is doing this but it is.

Where exactly are you having this issue? It seems to be rounding fine on my computer

Thanks for checking it out @Trigger2004 - but I helped him out with this issue in Discord.

The problem (as shown in that screenshot) was that the rounding was happening too early, it needed to be the last thing before the label.

2 Likes