Focal Point
[SOLVED] Calculation

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4717059295

November 03, 2010, 03:52 PM
serenekk
[SOLVED] Calculation
I am trying to calculate something from &records.
This is what I am trying to do, i.e;

-SET &RECNUM = 5;
-SET &NUM = 5/2 ;

so 2 will be the answer. but how do you get 2.5 or whatever that comes for the remainder? how to calculate this?
Thanks!

This message has been edited. Last edited by: Kerry,


on VMS: OpenVMS AXP V8.2 Prod and TestEnvironment
Webfocus: WebFocus 7.6.1 Prod and TestEnvironment
November 03, 2010, 04:09 PM
GamP
SET DMPRECISION=2
-RUN
-SET &RECNUM = 5;
-SET &NUM = 5/2 ;
-TYPE &NUM



GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
November 03, 2010, 04:41 PM
serenekk
quote:
SET DMPRECISION=2
-RUN
-SET &RECNUM = 5;
-SET &NUM = 5/2 ;
-TYPE &NUM


thanks! that set command does it!


on VMS: OpenVMS AXP V8.2 Prod and TestEnvironment
Webfocus: WebFocus 7.6.1 Prod and TestEnvironment