I'm new to scripting and I want to know how I can make the number for textlabel round up when a part's transparency changes I want the number to be something like 0.3 but it does something like 0.300000001192093 this is my script
local stud = game.workspace.Stud.Transparency
while true do game:GetService("RunService").Heartbeat:Wait()
script.Parent.Text = workspace.Stud.Transparency
end

2 comments
use math.floor
Maybe you can try that if the value is > 0.3, you'll set it up to become = 3?