VAL

Previous  Next

 

number = VAL( str AS STRING ) AS VARIANT

 


 

Returns the number contained in a string as a numeric value of appropriate type.

 

Example:

 

DIM n AS REAL

n = 100 * VAL( "123.123" )

PRINT n,      

12312.3