The string is read in the format of BASIC numeric constants. Characters are read and converted until the format is violated or the end of the string is reached. *Ps is updated to this ending location and so may be used to determine the validity of the string.
Type is normally zero. This function is also used by the BASIC lexical analyzer to convert constants in the source code where type identifies the explicit type marker of the constant (see generic(inc)).
This function returns the type (see generic(inc)) of the converted value. The type is determined from type and the format of the string.
This function supports functions which require string conversion. It does not directly implement any BASIC functions.
from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber