trunc
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
trunc(number, digits)
Description
Truncates a number to a specified precision.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| number | Number | Yes | Number to truncate. |
| digits | Number | Yes | Precision. |
Return type
number
Example
number a = trunc(1.1578212823495777, 3);
print("a= " + a);
Prints: a= 1.157;
See also
, multiple selections available, Use left or right arrow keys to navigate selected items