4GL Decmal Precision

Thanks Mike, that worked!




________________________________
From: Mike Anstey <manstey@...>
To: vantage@yahoogroups.com
Sent: Thursday, November 22, 2012 12:28 PM
Subject: RE: [Vantage] Re: 4GL Decmal Precision

ROUND(VAR,2)



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of b_ordway
Sent: Thursday, November 22, 2012 12:50 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: 4GL Decmal Precision



Â

Have you tried adding the qualifier - DECIMALS <n>

DEFINE VARIABLE d1 AS DECIMAL DECIMALS 10.

As far as I know, 10 is the max for the decimals qualifier.

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"tkoch77" <tkoch77@...> wrote:
>
> Hi,
>
> Is there either a way to declare a decimal variable to a certain
precision, or treat the variable after it has the value to a certain
precision?
>
> Ex: 4.326388 I want as 4.33
>
> Thanks,
>
> -Ted
>





[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Hi,

Is there either a way to declare a decimal variable to a certain precision, or treat the variable after it has the value to a certain precision?

Ex: 4.326388 I want as 4.33

Thanks,

-Ted
Have you tried adding the qualifier - DECIMALS <n>

DEFINE VARIABLE d1 AS DECIMAL DECIMALS 10.

As far as I know, 10 is the max for the decimals qualifier.

--- In vantage@yahoogroups.com, "tkoch77" <tkoch77@...> wrote:
>
> Hi,
>
> Is there either a way to declare a decimal variable to a certain precision, or treat the variable after it has the value to a certain precision?
>
> Ex: 4.326388 I want as 4.33
>
> Thanks,
>
> -Ted
>
ROUND(VAR,2)



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of b_ordway
Sent: Thursday, November 22, 2012 12:50 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: 4GL Decmal Precision





Have you tried adding the qualifier - DECIMALS <n>

DEFINE VARIABLE d1 AS DECIMAL DECIMALS 10.

As far as I know, 10 is the max for the decimals qualifier.

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"tkoch77" <tkoch77@...> wrote:
>
> Hi,
>
> Is there either a way to declare a decimal variable to a certain
precision, or treat the variable after it has the value to a certain
precision?
>
> Ex: 4.326388 I want as 4.33
>
> Thanks,
>
> -Ted
>





[Non-text portions of this message have been removed]