Calculator Function Refrence

Function Reference >Calculator Function Reference >General Math>Rounding Functions

Rounding Functions

There are three rounding functions supported.
  • round(x[,decimal])
  • floor(x)
  • ceil(x)
round() will round x to the number decimal places specified by decimal. If decimal is not given then x is rounded to the nearest integer.
round(10.5)=11
round(3.14159,2)=3.14
floor returns the highest integer less than or equal to x.
ceil returns the smallest integer not less than x.
floor(10.8)=10
ceil(4.4)=5
Each of these function when given a complex input will operate on the real and imaginary parts seperatly.
round(3.2+5.7i)=3+6i
floor(-4.4+5.4i)=-4+5i
ceil(6-1.2i)=6-i