INT64 function
Takes any data type and returns an INT64 value, if the conversion is possible. This function takes most common data types except for RAW and MEMPTR.
Syntax
expression
A constant, field name, variable name, or expression whose value can be of any data type except for RAW and MEMPTR. If the value ofexpression
is a CHARACTER, it must be valid for conversion into a number (for example, “1.67" is valid, “1.x3" is not). Ifexpression
is an object reference (CLASS), the result is the ABL-generated ID for the class instance. Ifexpression
is a LOGICAL, the result is 0 ifexpression
is FALSE and the result is 1 ifexpression
is TRUE. Ifexpression
is a DATE, the result is the number of days from 1/1/4713 B.C. to that day. Ifexpression
is the Unknown value (?
), the result is the Unknown value (?
).ExampleThe following example demonstrates how to use the INT64 function to convert a variety of data types to the INT64 data type:
See alsoGET-INT64 function, PUT-INT64 statement, INTEGER function, DECIMAL function, STRING function
OpenEdge Release 10.2B
|