The ULONG64 function returns a result equal to Expression converted to the unsigned 64-bit integer type.
Result = ULONG64( Expression[, Offset [, D1 [, ..., D8]]] )
Returns the specified dimensions of the given expression as an unsigned 64-bit integer type.
The expression to be converted to unsigned 64-bit integer.
Offset from beginning of the Expression data area. Specifying this argument allows fields of data extracted from Expression to be treated as unsigned 64-bit integer data. See the description in Constants and Variables for details.
When extracting fields of data, the Di arguments specify the dimensions of the result. If no dimension arguments are given, the result is taken to be scalar.
The Di arguments can be either an array or a series of scalar expressions specifying the dimensions of the result. If a single argument is specified, it can be either a scalar expression or an array of up to eight elements. If multiple arguments are specified, they must all be scalar expressions. Up to eight dimensions can be specified.
When converting from a string argument, it is possible that the string does not contain a valid integer and no conversion is possible. The default action in such cases is to print a warning message and return 0. The ON_IOERROR procedure can be used to establish a statement to be jumped to in case of such errors.
This routine is written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs. The values stored in the
If A contains the floating-point value 32000.0, it can converted to an unsigned 64-bit integer and stored in the variable B by entering:
B = ULONG64(A)
Introduced: 5.2
BYTE, COMPLEX, DCOMPLEX, DOUBLE, FIX, FLOAT, LONG, LONG64, STRING, UINT, ULONG