Subject | Re: [IBO] Monetary - Numeric(18,2) AsCurrency/AsExtended |
---|---|
Author | Jason Wharton |
Post date | 2002-10-23T23:48:14Z |
AsCurrency will be handled better than AsExtended.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
----- Original Message -----
From: "Martin D. Berezaga" <mdberezaga@...>
To: <ibobjects@yahoogroups.com>
Sent: Wednesday, October 23, 2002 3:27 AM
Subject: [IBO] Monetary - Numeric(18,2) AsCurrency/AsExtended
> I'm using Numeric(18,2) to Monetary fields. To set/get these values in
> code, what's the best alternative to avoid rounding problems?
>
> IB_Query.FieldByName('MonetaryField').AsCurrency or
> IB_Query.FieldByName('MonetaryField').AsExtended ?
>
> Thanks.
>
> ---------------------------
> Martin D. Berezaga
> mdberezaga@...
> ICQ : 18537142
> Porto Alegre - RS - Brasil
> ---------------------------