0 pts.
 Anyone know how RPG handle the calculation of n X where X & n are fraction (decimal number) ? if no, can RPG IV do ?
Anyone know how RPG handle the calculation of n X where X & n are fraction (decimal number) ? if no, can RPG IV do ?

Software/Hardware used:
ASKED: April 19, 2005  9:12 PM
UPDATED: April 20, 2005  4:18 AM

Answer Wiki:
You can do it in RPGLE very easily using the Eval statement. You use "**" as the mathematical operator which means "raise to the power of". So, the following line will work: Eval Result = X **n All the best Jonathan
Last Wiki Answer Submitted:  April 20, 2005  4:18 am  by  astradyne   370 pts.
All Answer Wiki Contributors:  astradyne   370 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _