Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

ceiling(number, significance)

Package

Alias

Pkg Usage

Description

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

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

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

number

Number

Yes

Numeric value you want to round.

significance

Number

Yes

Multiple you want to round to.

Return Type

Number

Example

Prints:

Code Block
number a = ceiling(2.5, 1);
print("a= " + a);
number b = ceiling(-2.5, -2);
print("b= " + b);

Prints:
a= 3;
b= -4;

Note

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

...