DADiSP Worksheet Functions > Function Categories > String Manipulation > NUMSTR

 

NUMSTR

Purpose:

Converts a string into a scalar.

Syntax:

NUMSTR("string")

"string"

-

A string. The string to convert to a scalar.

Returns:

A scalar.

Example:

numstr(strfind("XINC", "YOR:12.3 XINC:1.0 YREF:120.0"))

 

returns: 1.0

Remarks:

NUMSTR is a simple string to numeric converter - think of it as "numify a string".  

 

See NUM2STR to convert a number or series to a string.

 

See NUMSTRS to convert a string to a series.

 

See SSCANF for more conversion options.

See Also:

NUM2STR

NUMSTRS

SPRINTF

SSCANF

STREXTRACT

STRFIND

STRGET

STRNUM