Eval

From VLECK
Jump to: navigation, search

converts strings to numbers

Syntax

return = Eval(NumString);

Return Value

Returns the number of the appropriate type (integer, double), or throws an exception when NumString contains an invalid number. If NumString is a vector, Eval() returns a structure with the corresponding number of numerical elements.

Parameters

NumString a string representing a number


Example

eval("123.456")
123.456000

eval("123.456D")

eval("123")
123

eval("123.456D")
: Error S0 : The system cannot find message text for message number 0x40050671 in the message file for C:\WINDOWS\system32\MPLMath.dll.
C:\WINDOWS\system32\MPLMath.dll : Error S0x000357 : The result of function  is NULL.