Examples of Conversion Using NumericToInteger Programming Block

Top  Previous  Next

In the examples below, numbers 1 and 2 show conversion outputs for inputs greater than zero. Examples 3 and 4 show conversion outputs for inputs less than zero.

Table 5: Examples of Conversion by the NumericToInteger Programming Block

Example #

Input

Output

1

4.5

5

2

4.4

4

3

-4.5

-5

4

-4.4

-4

 

Inputs



 

 

Slots

Type

Default

Description

 

In

Numeric

 

The numeric value that will be converted to an integer output value.

 

Outputs


 

Slots

Type

Description

 

Out

Integer

The integer value resulting from the conversion of the integer input value.

 

Properties


 

Slots

Description

 

DefaultValue

The integer value of the output when the input is Null.