Re: debug.print 183 - 173.55
- From: "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 15:20:40 -0800
"xgold" <xanghel@xxxxxxxxx> wrote in message
news:OrXGEtzEHHA.4404@xxxxxxxxxxxxxxxxxxxxxxx
i have visual basig 6
if i type in the debug window it gives me a strange result
debug.print 183 - 173.55
9.44999999999999
why this result instead of 9.45
This question is as old as floating point math itself
if you try this with windows standard calculator it gives the right
answer.
The Calculator knows how to work with floating point numbers.
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
.
- Follow-Ups:
- Re: debug.print 183 - 173.55
- From: xgold
- Re: debug.print 183 - 173.55
- References:
- debug.print 183 - 173.55
- From: xgold
- debug.print 183 - 173.55
- Prev by Date: debug.print 183 - 173.55
- Next by Date: Re: debug.print 183 - 173.55
- Previous by thread: debug.print 183 - 173.55
- Next by thread: Re: debug.print 183 - 173.55
- Index(es):
Relevant Pages
|
Loading