INT64 function
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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. The function behaves as described for the following data
types:
- If the value of expression is a CHARACTER, it must be valid for conversion into a number (for example, "1.67" is valid, "1.x3" is not).
- If expression is an object reference (CLASS), the result is the ABL-generated ID for the class instance.
- If expression is a reference to an instance of an enum, the result is the underlying numeric value of that instance.
- If expression is a LOGICAL, the result is 0 if expression is FALSE and the result is 1 if expression is TRUE.
- If expression is a DATE, the result is the number of days from
1/1/4713 B.C. to that day. If expression is the Unknown value
(
?), the result is the Unknown value (?).
Example
The following example demonstrates how to use the INT64 function to convert a variety of data types to the INT64 data type:
r-int64.p
|
See also
GET-INT64 function, PUT-INT64 statement, INTEGER function, DECIMAL function, STRING function