Rounding issues

I was just making my 5 Modding tree game ideas, and then I found something weird, it was telling me to buy the buyable for X.0000000… or X.999999999 pieces instead of rounding it to X:

idek