Difference between revisions of "Round"

From Catglobe Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Math_Functions]]
+
{{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 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