Difference between revisions of "Round"
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{HelpFiles}} | |
− | + | ||
+ | ==== 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 __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