Hello,
I have a variable named nbrCopy, the value is of 3.
I have another variable named total, the amount is 0.30.
When, I did
The resultat is .30
I would like to display 0.30
By searching on Internet, I have to use %editw .
I have tried this
The result is now -> 00.0030
I don't understand why I don't print 0.30 ?
Thank you a lot for your help.
I have a variable named nbrCopy, the value is of 3.
I have another variable named total, the amount is 0.30.
When, I did
Code:
message = 'The amount is of ' + %char(total) + ' euros'; dsply message ' ' waitInput;
I would like to display 0.30
By searching on Internet, I have to use %editw .
I have tried this
HTML Code:
message = 'The amount is of ' + %char(%editw(total:'0 . ')); dsply message ' ' waitInput;
I don't understand why I don't print 0.30 ?
HTML Code:
**free dcl-s nbrCopy packed(4:0); dcl-s total packed (5:2); dcl-s message varchar(50); dcl-s waitInput char(1); nbrCopy = 3; IF nbrCopy < 11; total = nbrCopy * 0.10; ENDIF; //message = 'The amount is of ' + %char(total) + ' euros'; message = 'The amount is of ' + %char(%editw(total:'0 . ')); dsply message ' ' waitInput; *INLR = *on;
Comment