Rounding Functions

Rounding a numerical value means replacing it by another value that is approximately equal but has a shorter, simpler, or more explicit representation; for example, replacing £23.4476 with £23.45, or the fraction 312/937 with 1/3, or the expression √2 with 1.414.

Rounding is often done to obtain a value that is easier to report and communicate than the original. Rounding can also be important to avoid misleadingly precise reporting of a computed number, measurement or estimate; for example, a quantity that was computed as 123,456 but is known to be accurate only to within a few hundred units is better stated as "about 123,500."
  • ceil
  • floor
  • frac
  • trunc

ceil(_)     <returns map a real number to the largest previous following integer, respectively>

floor(_)     <returns map a real number to the smallest following integer, respectively>

fracl(_)     <returns >

trunc(_)     <returns >

Syntax Example using power:

coming soon

Additional Syntax:

coming soon

Common examples:

Share by: