Math.Round

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

Math.Round


 

Move decimal point and truncate.

 


syntax

Math.Round(

         val,

         decimalNum,

         roundType,

         decimalMove,

         )

 


Parameters

 

val

 

Type:

Number

 

The source value. Arrays can be specified.

 

decimalNum

 

Type:

Number

 

Number of decimal places. If -1 is specified, the number of decimal places will not be adjusted. Arrays can be specified.

 

roundType

 

Type:

Number

 

How to adjust the number of decimal points. Array can be specified.

0 - rounded

1 - Truncate

2 - Round up

 

decimalMove

 

Type:

Number

 

Number of decimal places to move. If 0 is specified, there is no movement. Arrays can be specified.

 

Return Value

 

 

Type:

Number

 

The result value.

 

 


hmtoggle_plus1Explanation

 

 


Supported


Script Action

Browser script

Calculation formula syntax

 

 


reference