Breadcrumbs

convertToString() Operation for Float Values

Syntax

set aString = aFloat.convertToString()

Semantics

Returns the internal lexical representation of a Float.

Substitutables

aFloat

Can be any variable or object attribute having the type Float

Examples

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 shows different possibilities for type conversions between Float, Integer, String, and Boolean types in Scheer PAS Designer.

📗