rocinantealpha

reference / maths

round

The nearest whole number; halves go away from zero: round 2.5 is 3.

print (round 2.5)print (round 2.4)

It prints

3
2

How to write it

round value

Gives a number.

Related