Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Round: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:Math_Functions]]
{{HelpFiles}}  
{{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 __NOTOC__ <!-- imported from file: 570.htm-->


Version 4.8
[[Category:Math_Functions]]
__NOTOC__
<!-- imported from file: 570.htm-->

Latest revision as of 08: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