cbmstr
Programmer
- Feb 9, 2009
- 4
Hello,
the COMPUTE example below with a floating-point is much faster(about 1:4) than without one. Can somebody explain it ? It´s depending on which compiler there are used ?
COMPUTE decimal = amount * (10 ** (dcml * -1)) + 0.0E+00)
decimal PIC S9(12)V(6) COMP-3.
amount PIC S9(18) COMP-3.
dcml PIC 9(04).
Regards
cbmstr
the COMPUTE example below with a floating-point is much faster(about 1:4) than without one. Can somebody explain it ? It´s depending on which compiler there are used ?
COMPUTE decimal = amount * (10 ** (dcml * -1)) + 0.0E+00)
decimal PIC S9(12)V(6) COMP-3.
amount PIC S9(18) COMP-3.
dcml PIC 9(04).
Regards
cbmstr