CRE Programmer's Guide
Math Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
7-25
Remainder
i := RTL_And_Int64_(bits, %55555555F); ! I = %054541010F
i := RTL_Or_Int64_( bits, %55555555F); ! I = %077557755F
i := RTL_Xor_Int64_(bits, %55555555F); ! I = %023016745F
Remainder
The Remainder function returns the 64-bit integer remainder from the integer division
of its parameters.
dividend
is the 64-bit dividend.
divisor
is the 64-bit divisor.
Return Value
Remainder returns the remainder after dividing dividend by divisor.
Decimal Conversion Functions
This subsection describes the decimal conversion functions. Table 7-4 on page 7-25
lists the functions in this subsection.
The native CRE library does not provide Decimal Conversion functions. If your
program must perform these conversions, use language-specific run-time library
decimal conversion functions.
INT(64) PROC RTL_Remainder_Int64_( dividend, divisor );
INT(64) dividend, divisor; ! in TNS
only
Table 7-4. Decimal Conversion Functions
Function Name Function Action
Decimal_to_Int Converts a decimal number represented in ASCII to a 16-, 32-, or 64-bit
integer.
Int_to_Decimal Converts a 16-, 32-, or 64-bit integer to a decimal number represented in
ASCII.