Skip to end of banner
Go to start of banner

round

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available since katl-commons 2.5 .


Syntax:

round(number, digits)

Description:

  Rounds a number to a specified number of digits. 

Parameters:

ParameterTypeRequiredDescription
numberNumberYesThe number that you want to round.
digitsNumberYesThe number of digits to which you want to round the number argument.

Return type:

number

Example:

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

Prints: a= 2.37;


 

See Also:

 


  • No labels