syntax:functions:round
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
syntax:functions:round [2016/07/09 08:44] – dmitry | syntax:functions:round [2021/09/30 13:07] – [Examples] dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Round(number, | + | ====== Round(number, |
+ | Category: | ||
- | Rounds | + | \\ |
+ | =====Description===== | ||
+ | This function rounds | ||
- | Note: there exist two types of rounding in general -- " | + | \\ |
- | ^ Example | + | =====Alternative syntax===== |
- | | round( 5.55, 1 ) | 5.6 | | + | The 2nd argument in this function is optional. If omitted, it's assumed to be 0. |
- | | round( 5.65, 1 ) | + | Round(number) |
+ | \\ | ||
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |number|Number|The value, usually fractional, to be rounded.| | ||
+ | |dec_places|Number (from -9 to 28)|The number of decimal places to round //number// to.| | ||
+ | \\ | ||
+ | **Return value type: | ||
- | === See also === | + | \\ |
- | * [[syntax: | + | =====Remarks===== |
- | * [[syntax: | + | There exist two types of rounding in general - " |
- | * [[syntax: | + | |
+ | Using a // | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | round(5.55, 1) //Returns 5.6 | ||
+ | |||
+ | round(5.65, 1) //Returns 5.6 | ||
+ | |||
+ | round(101.567, | ||
+ | |||
+ | round(101.5784, | ||
+ | |||
+ | round(92.523, | ||
+ | |||
+ | round(12345, | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
+ | * [[syntax: |
syntax/functions/round.txt · Last modified: 2023/02/28 20:13 by craigt