
Signature
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
hmm strange problem , i didnt knew about that, i solved the problem using
the round function round(c,2) , ty.
> >i have visual basig 6
> >
[quoted text clipped - 13 lines]
>
> Weird floating point problem
http://groups.google.com.my/group/microsoft.public.vb.general.discussion/msg
/74b7abbe3645bd1b
> --
> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
> In Loving Memory - http://www.vbsight.com/Remembrance.htm
Robert Morley - 29 Nov 2006 18:46 GMT
If you're doing this in VB instead of via a query, you can also force this
to a Currency data type through a variety of methods...the simplest one (to
use your example) is:
debug.print 183@ - 173.55@
(Technically only one of the @'s is needed, but it's best to be thorough.)
If you don't mind fairly slow code, you can also use the Decimal data type:
debug.print CDec(183) - CDec(173.55)
Rob
> hmm strange problem , i didnt knew about that, i solved the problem using
> the round function round(c,2) , ty.
[quoted text clipped - 23 lines]
>> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
>> In Loving Memory - http://www.vbsight.com/Remembrance.htm
Robert Morley - 30 Nov 2006 02:52 GMT
> If you're doing this in VB instead of via a query, you can also force this
Sorry about the reference to a query...most of my groups are Access groups
and I hadn't clued in that I was now in the realms of VB only. :)
Rob