How can I get rid of the zeros?

Hello! So while I was making the script that was lowering a NumberValue for my game, I suddenly saw a problem.
I’m too lazy to explain it right now, so see the picture
a
Basically how can I make it so that it shows 91.3% instead of 91.3000000000005%?
Script:

local Integrity = workspace:WaitForChild("Values").Temperature.Integrity

while true do
	script.Parent.Text = Integrity.Value.."%"
	wait()
end

thx waiting for a reply

2 Likes

Hi there, im recommending to use this line of code: script.Parent.SpeedLabel.Text = (math.floor(Number)/0.5)

You could format it to certain decimal places with the %.f specifier from string.format.

e.g.

script.Parent.Text = string.format("%.1f%%", Integrity.Value)
3 Likes

script.Parent.Text = (math.floor(182)/0.5) this should work

also use Blur Spoilers to prevent 30 words

man thanks it really worked! really appreciate it!

tried it but it multiplies it by 2

well, use 1.5 then