So I have a code that gives almost whole numbers like 0.999827 or 7.00000234 and I have the numbers being displayed on the screen. I would like to round them up to whole numbers so that on the screen numbers like 1 and 7 appear, but how do I do that?

## Comments

@DrSurname Do a forum or google search for string.format().

@DrSurname As @GR00G0 said, if you want to round a number to the nearest whole number, do:

Another way to change the amount of values that appear is to use string.format(). For example, if you want to change 3.4567 to 3.45, then you only want two decimal places, so you do: