On Integrity server systems, modifies the IEEE rounding mode and,
optionally, returns the previous value.
Format
SYS$IEEE_SET_ROUNDING_MODE new_value , [*prev_value]
C Prototype
int sys$ieee_set_rounding_mode (int new_value, int
*prev_value); ,
1 – Arguments
new_value
OpenVMS usage:IEEE rounding mode
type: longword (unsigned)
access: read only
mechanism: by value
The new value can be one of the following:
Symbol ValueMeaning
IEEE$C_RM_NO_ -1 No change. Just get previous value
CHANGE
IEEE$C_RM_NEAREST 0 Nearest (or even)
IEEE$C_RM_DOWN 1 -Infinity (down)
IEEE$C_RM_UP 2 +Infinity (up)
IEEE$C_RM_TRUNCATE 3 Zero (truncate/chop)
prev_value
OpenVMS usage:IEEE rounding mode
type: longword (unsigned)
access: write only
mechanism: by reference
The previous value is a pointer to a return value that can be one
of the last four items from the table showing new values.