Hiding decimals without using Mathf.Round?

I can’t use Mathf.round because it rounds up after 0.5. I dont want it to round up but show the real float value without decimals. How can this be done? :slight_smile:
I have a slider with a float value from 1 to 10 and I want the string to go “1,2,3,4”…
I’m using C# too btw :slight_smile:

In this case you should use Mathf.Floor(), which will round it down to the nearest integer.

You say that you’re using a slider… You know that you can set the slider to “Whole Numbers”