This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:round [2020/04/21 21:18] admin created |
en:round [2020/04/21 21:26] (current) admin [Description] |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== Format ==== | ==== Format ==== | ||
- | **round** ( [[numericexpressions|Numeric_expression]] ) | + | **round** ( [[numericexpressions|Numeric_expression]] )\\ |
+ | **round** ( [[numericexpressions|Numeric_expression]], | ||
- | return [[booleanexpressions|boolean_expression]] | + | |
+ | return [[numericexpressions|Numeric_expression]] | ||
==== Description ==== | ==== Description ==== | ||
- | The IsNumeric | + | This function |
+ | |||
+ | ==== Example ==== | ||
- | The following Numeric strings are valid: " | + | < |
+ | a = 3.1415926535 | ||
+ | print round(a) | ||
+ | print round(a,1) | ||
+ | print round(a,2) | ||
+ | print round(a,3) | ||
+ | print round(a, | ||
+ | </ | ||
+ | < | ||
+ | 3.0 | ||
+ | 3.1 | ||
+ | 3.14 | ||
+ | 3.142 | ||
+ | 3.1416 | ||
+ | </ | ||
==== See Also ==== | ==== See Also ==== |