Skip to main content
Skip table of contents

convertToString() Operation for Float Values

Syntax

set aString = aFloat.convertToString()

Semantics

convertToString() returns the internal lexical representation of a Float.

Substitutables

aFloat

Can be any variable or object attribute having the type Float

Examples

NONE
set aString = aFloat.convertToString();

Some Examples

Source Float

Target String

Remark

123.45

“123.45”

-123.45

“-123.45”

1.0/6.0

“0.16666666666666666666666666666666666666666666666667”

The xUML Runtime has an internal format string for converting Float values to String. The number is rounded after 50 decimals.

ActionScript_TypeConversions_Example

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.