drrnd.
DFP Reround
Rerounds a decimal floating-point number to the specified precision.
Details
The drrnd instruction rerounds a decimal floating-point number in register RA to the precision specified by the rounding mode in the FPSCR (Floating-Point Status and Control Register). The result is placed back into register RA.
Pseudocode Operation
if 'drrnd.' then
RA <- Reround(RA, FPSCR.RM)
Programming Note
The drrnd instruction is used to reround a decimal floating-point number in register RA according to the rounding mode specified in the FPSCR. Ensure that the FPSCR's rounding mode is set appropriately before executing this instruction to achieve the desired precision. This instruction operates at user privilege level and does not raise exceptions under normal circumstances, but it may alter the contents of CR0 if an exception occurs during execution.
Example
Encoding
Operands
-
RA
Target Decimal Floating-Point Register -
RB
Source Decimal Floating-Point Register