XenoGuard 4.0 Documentation

Ceiling

ActionStep Reference » Programming » Number Operation » Float » Ceiling

The ActionStep Ceiling rounds the number to the closest integer that is greater than its value and stores the number in Result of the result list. Only the Floating Point data type is allowed.

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Number Operation node.
  3. In the Float node, select the Ceiling ActionStep.

Parameters:

The ActionStep has the following input parameters:


NAME DESCRIPTION
Number Type
Specifies the data type to be used for a number

Allowed Context Scope
 [Fixed]
Allowed Value [Floating Point]
Source
The number to be rounded to its closest positive integer

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Results:

The ActionStep returns the following results:


NAME
DESCRIPTION
Result Contains the ceiling number 

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Warning

The number type set in the ActionStep Ceiling determines the data type of its Result even if the variables and/or parameters that were set for the source are of different data types.

Information Using the Ceiling ActionStep for a negative number results in the dropping of numbers after the decimal point. For instance, -21.56 results in -21 as its ceiling value.

Example 1 (Calculate the total number of pages):

This example finds the rounded number of pages after dividing the Word Count and Page Count variables with a Number data type. The quotient is then passed to the Ceiling ActionStep and rounds to the closest positive number. The result of the ceiling number is then output via the Message Box.

See other Float operations:

Round
Truncate
Absolute
Floor