Need output in ascii item with 9 digits after the decimal poi nt
Pickering, John (NORBORD)
John.Pickering at norbord.com
Fri Apr 7 11:25:10 CDT 2006
Q U I Z (PowerHouse 8.49.C)
Copyright 2003 COGNOS INCORPORATED
Norbord Ind.
> define d-a int*12 = 10^9
> define d-b int*12 = 252856
>
> define d-x char*12 &
> = ascii(round(d-a / d-b),10)[1:1] + "." &
> + ascii(round(d-a / d-b),10)[2:9]
>
> report all
> go
06/04/07 Norbord Industries Inc. PAGE
1
D-A D-B D-X
1000000000 252856 0.000003955
-----Original Message-----
From: Wayne Dunlop [mailto:wayne.dunlop at gmail.com]
Sent: Friday, April 07, 2006 12:01 PM
To: powerh-l at lists.sowder.com
Subject: Need output in ascii item with 9 digits after the decimal point
Hi,
I have a division to do in Quiz
and I would like to know to know the simplest and most accurate way
to get the output in ascii with 9 digits after the decimal point
as in the example below :
a = 1
b = 252856
Dividing a by b
I get 0.000003955
I need that 0.000003955 in an ascii defined item.
Any help appreciated.
TIA
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20060407/ba17d70b/attachment.htm
More information about the powerh-l
mailing list