I’m making a clock gui where it shows the ClockTime on a textlabel, but the problem is that the TextLabel is showing every decimal
Is there any way to hide the decimals??
I’m making a clock gui where it shows the ClockTime on a textlabel, but the problem is that the TextLabel is showing every decimal
Is there any way to hide the decimals??
That would work, but, math.floor always returns the value lower, meaning it floors it. An example:
print(math.floor(8.9))
-- This will print 8 even though, normal rounding techniques say that it should be 9.
Math.floor just brings the float to the lowest possible integer just as math.ceil brings it to the highest. To get the proper rounded amount, do math.round(). This follows all the rounding rules such as any decimal 5 and above gets rounded higher, while a decimal below, gets rounded lower. Hope this helps!