MathRound

 

The 'MathRound' function rounds off the input number to the specified decimal places.

 

double @MathRound(double value, int digits);

 

Parameters

double value : value that you want to calculate

int digits : decimal places that you want to specify

 

Return Value

calculated result

 

Example 1

d = @MathRound(1.23456, 2);

Description : '1.23456' is rounded off to two decimal places. '1.23', the calculated result, is stored in the variable named 'd'.

 

Example 2

d = @MathRound(1.23456, 3);

Description : '1.23456' is rounded off to three decimal places. '1.235', the calculated result, is stored in the variable named 'd'.

 

Reference

@abs()

@acos()

@asin()

@atan()

@atan2()

@cos()

@log()

@log10()

@MathRound()

@sin()

@sqrt()

@tan()