drintn
Decimal Floating-Point Round To FP Integer Without Inexact
drintn R,FRT,FRB,RMC
drintn. R,FRT,FRB,RMC
drintn. R,FRT,FRB,RMC
Rounds a decimal floating-point number to an integer without recognizing an inexact exception.
Details
This operation rounds the value in FRB to an integer using the specified rounding mode (RMC) and places the result in FRT. It does not recognize an inexact exception.
Pseudocode Operation
Programming Note
The DFP Round To FP Integer Without Inexact and DFP Round To FP Integer Without Inexact Quad instructions can be used to implement decimal equivalents of several C99 rounding functions by specifying the appropriate R and RMC field values.
Example
drintn 0, f1, f3, 0
Encoding
Binary Layout
0
0
FRT
6
R
11
FRB
15
RMC
16
Rc
21
Operands
-
R
Rounding mode control -
FRT
Target Floating-Point Register -
FRB
Source Floating-Point Register -
RMC
Rounding Mode Control