Hello there,
I am wondering how you could round up/down values to one decimal? This is my script for a progress bar showing how many percentages you have completed in an obstacle course so far.
--// Variables
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Leaderstats = Player:WaitForChild("leaderstats")
local ProgressText = script.Parent
local MaxStages = 101 -- Whatever my current highest stage is.
--// Progress Percentage Function
while wait() do
ProgressText.Text = ("Progress: "..Leaderstats.Stage.Value*100/MaxStages.." %")
end
This works fine, although depending on how many stages I do have, I'll get an absurd amount of decimals. So I am wondering how you could round up/down the value to only give the player one decimal?
I would love to see an example of what I could do? Thank you.

2 comments
Thank you for helping me with this, and explaining it so well! It helepd me a lot!
Bad answer. String formatting is much easier.