Info | ||
---|---|---|
| ||
This routine is available since starting with katl-commons 2.5. |
Syntax
:round(number, digits)
Description
:Excerpt |
---|
Rounds a number to a specified number of digits. |
Parameters
:Parameter | Type | Required | Description |
---|---|---|---|
number | Number | Yes | The number that you want to round. |
digits | Number | Yes | The number of digits to which you want to round the number argument. |
Return type
:number
Example
:Code Block |
---|
number a = round(2.36547, 2); print("a= " + a); |
Prints: a= 2.37;
See Also:
contentbylabel
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|