Skip to main content

round

Overloads​

NameDescription
round(integer p) -> integerRounds the given value to the nearest integer.
round(real p) -> realRounds the given value to the nearest integer.
round(bool p) -> boolRounds the given value to the nearest integer.

round(integer p) -> integer​

Rounds the given value to the nearest integer.

Parameters​

  • p: The value to round.

round(real p) -> real​

Rounds the given value to the nearest integer.

Parameters​

  • p: The value to round.

round(bool p) -> bool​

Rounds the given value to the nearest integer.

Parameters​

  • p: The value to round.