round

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 2.5.


Syntax

round(number, digits)


Description

Rounds a number to a specified number of digits.

 


Parameters

ParameterTypeRequiredDescription
numberNumberYesNumber you want to round.
digitsNumberYesNumber of digits you want to round the number argument to.

Return type

number

Example

number a = round(2.36547, 2);
print("a= " + a);

Prints: a= 2.37;

See also