Difference between revisions of "Round"
(jrfconvert import) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{HelpFiles}} | |
− | | ||
− | ====round==== | + | ==== round ==== |
− | Gets the round numeric value of a number expression. | + | Gets the round numeric value of a number expression. |
− | '''Syntax''' | + | '''Syntax''' |
− | round(''exp, digits'') | + | round(''exp, digits'') |
− | '''Arguments''' | + | '''Arguments''' |
− | ''exp: ''Is an expression of any type | + | ''exp: ''Is an expression of any type |
− | ''digit: ''Is an integer expression | + | ''digit: ''Is an integer expression |
− | '''Return type''' | + | '''Return type''' |
− | number | + | number |
− | '''Examples''' | + | '''Examples''' |
− | number a = round(5.252525, 2); | + | ''number a = round(5.252525, 2); '' |
− | print(a); | + | ''print(a); '' |
− | //a = 5.25 | + | ''//a = 5.25 '' |
− | '''Availability''' | + | '''Availability''' |
− | Version 4.8 | + | Version 4.8 __NOTOC__ <!-- imported from file: 570.htm--> |
− | __NOTOC__ | + | |
− | <!-- imported from file: 570.htm--> | + | [[Category:Math_Functions]] |
Latest revision as of 09:03, 22 December 2011
round
Gets the round numeric value of a number expression.
Syntax
round(exp, digits)
Arguments
exp: Is an expression of any type
digit: Is an integer expression
Return type
number
Examples
number a = round(5.252525, 2);
print(a);
//a = 5.25
Availability
Version 4.8