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/09/07 11:20] – [See also] craigtsyntax:functions:round [2021/09/30 13:06] – [Arguments] 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 10: Line 16:
 ^Argument^Type^Description^ ^Argument^Type^Description^
 |number|Number|The value, usually fractional, to be rounded.| |number|Number|The value, usually fractional, to be rounded.|
-|dec_places|Number (positive, >=0)|The number of decimal places to round //number// to.|+|dec_places|Number (from -9 to 28)|The number of decimal places to round //number// to.|
 \\  \\ 
 **Return value type:**  Number **Return value type:**  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