Breadcrumbs

convertToInteger() for Float Values

Syntax

set anInteger = aFloat.convertToInteger()

Semantics

Returns the integer part of the float value aFloat.

Substitutables

anInteger

The result of the operation of type Integer.

aFloat

Can be any variable or object attribute having the type Float.

Examples

set anInteger = aFloat.convertToInteger();

Some Examples

Source Float

Target Integer

123.45

123

123.56

123

-123.45

-123

⬇️

ActionScript_TypeConversions_Example

Click here to download a simple example model that shows different possibilities for type conversions between Float, Integer, String, and Boolean types in Scheer PAS Designer.

📗