|
|
 |
In VB, 12.8 + 0.576 doesn;t equal 13.376
date posted 22nd January 2002 16:43
I'm using VB 6.0 SP 5
I'm debugging some code and have found that if you type: -
? (12.8 + 0.576) = 13.376
into the immediate window you get 'False'.
If you calculate (12.8 + 0.576) - 13.376 you get 1.22...E-15
If you convert the numbers to singles it works OK.
Anyone know of a fix?
Cheers,
Pete
_________________________________________
P e t e r E b d o n
Professional Software Engineering Ltd
Microsoft Certified Professional
Email : [EMAIL REMOVED]
Tel : +44(0)1235-227279
Fax : +44(0)1235-227280
Mobile : +44(0)7973-178945
Web : www.pseltd.com
|
 |
|