I have a simple script which show's the humanoid data such as JumpPower and WalkingSpeed. My problem is that if the value show more than 2 decimals then the Gui can't show it.
What I need is something that only show 2 decimals, I hope you guys understand what I mean.
you can try these
local Value = 37.7777779 local rounded_down = math.floor(Value*100)/100 --Result: 37.77 local rounded_up = math.ceil(Value*100)/100 --Result: 37.78 local nearest = math.round(Value*100)/100 --Result: 37.78 print(rounded_down) print(rounded_up) print(nearest)