Hi Edward,<br><br>I use extended for both.<br><br>does it cause problem?<br><br><div class="gmail_quote">On Wed, Dec 30, 2009 at 1:24 PM, Edward Koryagin <span dir="ltr"><<a href="mailto:ed_iv2001@yahoo.co.nz">ed_iv2001@yahoo.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Use currency and everything should be fine.<br>
<br>
Edward Koryagin<br>
<br>
<br>
--- On Wed, 30/12/09, Edward Koryagin <<a href="mailto:ed_iv2001@yahoo.co.nz">ed_iv2001@yahoo.co.nz</a>> wrote:<br>
<br>
> From: Edward Koryagin <<a href="mailto:ed_iv2001@yahoo.co.nz">ed_iv2001@yahoo.co.nz</a>><br>
> Subject: Re: [DUG] Need help with trunc command delphi 6<br>
> To: "NZ Borland Developers Group - Delphi List" <<a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>><br>
> Received: Wednesday, 30 December, 2009, 8:28 PM<br>
<div><div></div><div class="h5">> What data types do you use for 4.5<br>
> and 0.1?<br>
><br>
> Edward Koryagin<br>
><br>
><br>
> --- On Wed, 30/12/09, Vikas... <<a href="mailto:vikas.image@gmail.com">vikas.image@gmail.com</a>><br>
> wrote:<br>
><br>
> > From: Vikas... <<a href="mailto:vikas.image@gmail.com">vikas.image@gmail.com</a>><br>
> > Subject: [DUG] Need help with trunc command delphi 6<br>
> > To: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> > Received: Wednesday, 30 December, 2009, 8:00 PM<br>
> > Hello everyone,<br>
> ><br>
> > I am facing one strange problem here. We are using a<br>
> > banking teller application ,here we do calculation<br>
> based on<br>
> > denominations in short.<br>
> ><br>
> > My main problem is when we use this application for<br>
> long<br>
> > time with out closing it the trunc start giving<br>
> incorrect<br>
> > value what i mean is <br>
> ><br>
> ><br>
> > quantity := trunc(amount/value).<br>
> ><br>
> > Sometime when amount = let say 4.5 and value =0.1 it<br>
> gives<br>
> > like<br>
> ><br>
> > quantity := trunc(4.5/0.1)=44 which is wrong since my<br>
> > client complain it make them lose of 1 dollar amount.<br>
> ><br>
> ><br>
> > However when i close the application and do again all<br>
> works<br>
> > fine.<br>
> ><br>
> > Anyone ever faced this problem before , or anyone<br>
> know<br>
> > any substitute for trunc which works<br>
> > I am using delhi6<br>
> ><br>
> > Appreciate your help<br>
> ><br>
> ><br>
> > regards<br>
> > vik<br>
> ><br>
> > --<br>
> > vikas<br>
> ><br>
> ><br>
> > -----Inline Attachment Follows-----<br>
> ><br>
> > _______________________________________________<br>
> > NZ Borland Developers Group - Delphi mailing list<br>
> > Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> > Admin: <a href="http://delphi." target="_blank">http://delphi.</a>.<a href="http://org.nz/mailman/listinfo/delphi" target="_blank">org.nz/mailman/listinfo/delphi</a><br>
> > Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a><br>
> > with Subject: unsubscribe<br>
><br>
><br>
> <br>
><br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a><br>
> with Subject: unsubscribe<br>
><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> vikas<br>