So I was making a timer script for a typing game, but I have this really weird issue. The timer is acting really weirdly. Once you get about 10 seconds in, it has a bunch of unnecessary nines at the end. Can anybody explain why?
Local Script for Timer
local seconds = 30
script.Parent.TimerGoing.Changed:Connect(function()
while true do
script.Parent.Text = tostring(seconds)
seconds-=.01
wait(.01)
end
end)
I’m currently using a computer that’s not mine. I can explain it, though. Once it gets to a number divisible by 10, it has the normal tenths and hundredths, but then has either 0000000001 or 999999999
and then 1 in 00000001 goes up over time. For example, it goes to 0000000002
Number of zeroes and nines not exact lol
Do you know any math functions that can round numbers down to specific decimal places?