Jump to navigation Jump to search
Revision as of 02:39, 10 September 2009 by (Created page with ''''Purpose:''' To convert string values to numeric values. '''Syntax:''' CVL(''4-byte string'') '''Comments:''' * Numeric values read in from a random-access disk file must be …')
Purpose: To convert string values to numeric values.
Syntax: CVL(4-byte string)
- Numeric values read in from a random-access disk file must be converted from strings back into numbers if they are to be arithmetically manipulated.
- Reads a field from file #1, and converts the first four bytes (N$) into a long integer number assigned to the variable Y.
- Since a long number can contain as many as seven ASCII characters (seven bytes), writing a file using MKS$ conversion, and reading with the CVS conversion, as many as three bytes per number recorded are saved on the storage medium. Even more may be saved if double-precision numbers are required. MKD$ and CVD conversions would be used in this case.