I have a GUI that spawns the value of stamina which is a Float value so it can go down slowly, but the only problem is when it displays it shows a eff load of digits too, here is my script, please tell me how to make so it only displays the closest number? so instead of 40.2357283% it shows 40%
(I don’t put it all because its VERY LONG) It basically controls the whole character so I cut it up to the important parts:
No they aren’t. .NET is .NET (or technically Mono in Unity) regardless of language. ToString(“f0”) works identically in all languages. You unexpected char error is probably because you copy and pasted a null character into your text; try manually deleting and replacing the return at the end of the line.