Skip to end of metadata
Go to start of metadata

Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.

Availability

This routine is available starting with SIL Engine™ 2.5.

Syntax

ceiling(number, significance)

Description


Returns number rounded up, away from zero, to the nearest multiple of significance.


Parameters

ParameterTypeRequiredDescription
numberNumberYesNumeric value you want to round.
significanceNumberYesMultiple you want to round to.

Return type

number

Example

number a = floor(2.5, 1);
print("a= " + a);
number b = floor(-2.5, -2);
print("b= " + b);

Prints:

   a= 3;

   b= -4;

 Notes

  • If number is positive and significance is negative, ceiling returns the NaN value.

See also