Type (H) if half adjust is to be performed.
dres s 5s 2
dres1 s 5s 2
C eval res = 139 / 7
c res dsply
19.85
C eval(H) res1 = 139 / 7
c res1 dsply
19.86
Type (M) if the maximum number of digits rule is to be applied.
Type (R) if the result decimal position rule is to be applied: the
precision of a decimal intermediate will be computed such that the
number of decimal places will not be reduced by more than the number
of decimal positions of the result of the assignment.
eval p1 = p1 * p2 * p3;
// p1*p2 -> P(26,4); P(26,4)
// p1*p2*p3 -> P(39,6); P(30,0) (decimal positions are truncated)
eval(r) p1 = p1 * p2 * p3;
// p1*p2 -> P(26,4); P(26,4)
// p1*p2*p3 -> P(39,6); P(30,2) (decimal positions do not drop
// below target decimal positions)
Have no example for Type (M) let me know if any one has example for this
Last Wiki Answer Submitted: August 26, 2008 9:29 am by Sureshas40030 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.