- Home /
show float with no decimals and no scientific notation?
Right now I have a player score float that I want to show with no decimals and no scientific notation. I figured out I can either show no decimals by using myString = myFloat.ToString("F0")
or I can have a bigger displayed float with myString = myFloat.ToString("G10")
but I would like to use both at the same time. How can I do this?
Comment
Best Answer
Answer by StarShade88 · Apr 23, 2020 at 06:23 AM
((int)myFloat).ToString();
Hopefully it works.