Why is rounding still giving decimal numbers?
Not much to say really but just that when make my server age counter, it is not rounding the numbers, despite me using math.ceil(Number + Closest)
. anyway I need some hepl with this script!
03 | game.ServerStorage.ServerAge.Changed:connect( function () |
04 | if game.ServerStorage.ServerAge.Value < 60 then |
05 | script.Parent.Text = game.ServerStorage.ServerAge.Value .. " Seconds" |
07 | if game.ServerStorage.ServerAge.Value < 3600 then |
08 | TempNumber = game.ServerStorage.ServerAge.Value / 60 |
09 | script.Parent.Text = math.ceil(TempNumber + 60 ) .. " Minutes" |
11 | if game.ServerStorage.ServerAge.Value < 86400 then |
12 | TempNumber = game.ServerStorage.ServerAge.Value / 3600 |
13 | script.Parent.Text = math.ceil(TempNumber + 3600 ) .. " Hours" |
15 | if game.ServerStorage.ServerAge.Value < 604800 then |
16 | TempNumber = game.ServerStorage.ServerAge.Value / 86400 |
17 | script.Parent.Text = math.ceil(TempNumber + 86400 ) .. " Days" |
19 | if game.ServerStorage.ServerAge.Value < 2628000 then |
20 | TempNumber = game.ServerStorage.ServerAge.Value / 604800 |
21 | script.Parent.Text = math.ceil(TempNumber + 604800 ) .. " Weeks" |
23 | TempNumber = game.ServerStorage.ServerAge.Value / 2628000 |
24 | script.Parent.Text = math.ceil(TempNumber + 2628000 ) .. " Months" |
Thanks!