Converts an passed expression to a TYPE FLOATING point numeric value.

 

Syntax:

value = AsFloating( expression )

 

Parameter:

Description:

expression

Expression to convert to a floating numeric value

value

Converted expression is returned as a TYPE Floating number.

 

Example:

VARIABLES: stringOne, stringTwo TYPE: STRING
 
stringOne = "123.456"
stringTwo = "456.789"
 
print stringOne + stringTwo
print AsFloating(stringOne) + AsFloating(stringTwo)

 

Results:

This prints the string "123.456456.789"
This prints the number 580.245

 

Links:

AsInteger, AsSeries, AsString, IsFloating, IsInteger, IsString

See Also:

Data Groups and Types

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 46

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software