User Tools

Site Tools


syntax:functions:round

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
syntax:functions:round [2021/08/11 15:33] – [Examples] craigtsyntax:functions:round [2021/09/30 13:05] – [Description] dmitry
Line 5: Line 5:
 =====Description===== =====Description=====
 This function rounds a number to //dec_places// number of decimal digits.  This function rounds a number to //dec_places// number of decimal digits. 
 +
 +\\ 
 +
 +=====Alternative syntax=====
 +The 2nd argument in this function is optional. If omitted, it's assumed to be 0.
 +  Round(number)  //The same as Round(number, 0)
  
 \\  \\ 
Line 37: Line 43:
   * [[syntax:functions:ceiling|Ceiling(number)]]   * [[syntax:functions:ceiling|Ceiling(number)]]
   * [[syntax:functions:floor|Floor(number)]]   * [[syntax:functions:floor|Floor(number)]]
 +  * [[syntax:functions:roundxl|MRound(number, grain)]]
   * [[syntax:functions:roundxl|RoundXL(number, dec_places)]]   * [[syntax:functions:roundxl|RoundXL(number, dec_places)]]
   * [[syntax:functions:truncate|Truncate(number)]]   * [[syntax:functions:truncate|Truncate(number)]]
syntax/functions/round.txt · Last modified: 2023/02/28 20:13 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki