Discuss Scratch

jointeamjellyfish
Scratcher
50 posts

High score decimal bug

idk if this is a bug with my code OR a bug with scratch but for some reason sometimes the highscore cloud varible SHOWS LONG DECIMALS https://scratch.mit.edu/projects/1289771725/ (currently the high score is 5.99999999175)
even know that shouldnt happen since score goes up by 0.1

Last edited by jointeamjellyfish (March 13, 2026 20:34:24)

9to0
Scratcher
90 posts

High score decimal bug

That would be due to floating point inaccuracy (javascript has small problems adding decimals.) You can fix it by multiplying by 10, rounding, then dividing by 10

Powered by DjangoBB