utcnum.wbb - Convert Formatted Numeric Text String to a Number

Syntax

CALL "utcnum.wbb",text$,value

Description

This low-level routine converts a text string to a number, ignoring currency symbols and other nonnumeric characters. In PRO/5, it is also sensitive to the OPTS byte 6 position for the decimal character.

The characters "(" and "-" are both interpreted to indicate that the number is negative.

Parameter

Description

text$

Text to be converted.

value

Returns the numeric value, or 0 if the conversion fails.