+1 888 340 6572

Round: Difference between revisions

From MultiCharts
(Created page with "Returns the value of one specified numerical expression rounded to the number of decimal places specified by another. ==== Usage ==== <syntaxhighlight>Round(Value,Precision...")
 
mNo edit summary
 
Line 1: Line 1:
Returns the value of one specified numerical expression rounded to the number of decimal places specified by another.   
Returns the value of one specified numerical expression rounded to the number of decimal places specified by another.   


==== Usage ====
== Usage ==
<syntaxhighlight>Round(Value,Precision)</syntaxhighlight>  
<syntaxhighlight>Round(Value, Precision);</syntaxhighlight>  


Where: [[Value]] - a numerical expression
Where:  
 
:'''Value''' - a numerical expression, indicating the value that needs to be rounded.
              
              
[[Precision]] - a numerical expression  
:'''Precision''' - a numerical expression, indicating the number of decimals.
   
   
==== Example ====
== Examples ==
<syntaxhighlight>Round(1.237,2) will return a value of 1.24  
<syntaxhighlight>Round(1.237, 2);</syntaxhighlight>
Will return a value of 1.24.


Round(-5.7744,3) will return a value of –5.774</syntaxhighlight>
<syntaxhighlight>Round(-5.7744, 3);</syntaxhighlight>
Will return a value of –5.774.
   
   
[[Category:Math and Trig]]
[[Category:Math and Trig]]

Latest revision as of 06:33, 9 February 2012

Returns the value of one specified numerical expression rounded to the number of decimal places specified by another.

Usage

Round(Value, Precision);

Where:

Value - a numerical expression, indicating the value that needs to be rounded.
Precision - a numerical expression, indicating the number of decimals.

Examples

Round(1.237, 2);

Will return a value of 1.24.

Round(-5.7744, 3);

Will return a value of –5.774.