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/06/20 11:58] – dmitry | syntax:functions:round [2021/08/11 15:33] – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Round(number, | + | ====== Round(number, |
+ | Category: | ||
- | Rounds | + | \\ |
+ | =====Description===== | ||
+ | This function rounds | ||
- | ^ | + | \\ |
- | | round( 5.55, 1 ) | 5.6 | | + | =====Arguments===== |
+ | ^Argument^Type^Description^ | ||
+ | |number|Number|The value, usually fractional, to be rounded.| | ||
+ | |dec_places|Number (positive, >=0)|The number of decimal places to round //number// to.| | ||
+ | \\ | ||
+ | **Return value type: | ||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | There exist two types of rounding in general - " | ||
- | === See also === | + | Using a // |
- | * [[syntax: | + | |
- | * [[syntax: | + | \\ |
+ | =====Examples===== | ||
+ | |||
+ | round(5.55, 1) //Returns 5.6 | ||
+ | |||
+ | round(5.65, 1) //Returns 5.6 | ||
+ | |||
+ | round(101.567, | ||
+ | |||
+ | round(101.5784, | ||
+ | |||
+ | round(92.523, | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
+ | * [[syntax: |
syntax/functions/round.txt · Last modified: 2023/02/28 20:13 by craigt