Focal Point
[Closed]Dialogue manager - amper variable division

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

February 17, 2011, 03:07 PM
Neenz
[Closed]Dialogue manager - amper variable division
I am trying to divide amper variables using dialogue manager commands, but the result that I get is a rounded value. How can i get a decimal number back

-SET &num1 = 234 ;
-SET &num2 = &num1/5 ;
-TYPE &num2

This gives me 46 instead of 46.8.

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


WF: 7.6.8
OS/Platform: Windows, Unix
February 17, 2011, 03:27 PM
fatboyjim
Hi,

You can use the the setting DMPRECISION.
Below is a link from other posting that mentions it.

http://forums.informationbuild...=768104025#768104025

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
February 17, 2011, 03:27 PM
Mary Watermann
Neenz,

You will need to use the DMPRECISION setting:

The SET DMPRECISION command gives users the option of either accepting the default truncation of the decimal portion of output from arithmetic calculations, or specifying up to nine decimal places for rounding.

SET DMPRECISION = {OFF|n}

-mary


WF 7.6.10, Windows, PDF, Excel
February 18, 2011, 12:29 PM
Neenz
Thanks Mary and Jimmy !
That works Smiler


WF: 7.6.8
OS/Platform: Windows, Unix