CVI, CVS, CVD¶
Syntax¶
Versions: Disk
Description¶
Convert string values to numeric values. Numeric values that are read in from a random disk file must be converted from strings back into numbers. CVI converts a 2-byte string to an integer. CVS converts a 4-byte string to a single precision number. CVD converts an 8-byte string to a double precision number.
Error: Raises "Illegal function call" (error code FC) if the string length is incorrect (not exactly 2, 4, or 8 bytes respectively). See Error Codes for details.
Example¶
See Also¶
- MKI, MKS, MKD$ - Convert numeric values to string values (inverse of CVI/CVS/CVD)
- FIELD - Define fields for random file access
- GET - Read record from random file
- PUT - Write record to random file