AsFloating function

Top  Previous  Next

Displays the given expression as a floating point.

 

Syntax

 

value = AsFloating( expression )

 

Parameters

expression

 

the expression to convert

 

 

 

returns

 

the converted expression

 

Examples

VARIABLES: stringOne, stringTwo TYPE: STRING

 

stringOne = "123.456"

stringTwo = "456.789"

 

print stringOne + stringTwo

' This prints the string "123.456456.789"

 

print AsFloating(stringOne) + AsFloating(stringTwo)

' This prints the number 580.245