Re: [Harbour] Issue with hb_numRound in MSVS 2005

2008-08-14 Thread Randy Portnoff
Hi Przemek, Thank you VERY much for that detailed explanation and for your help! Your second solution... hb_vmPushLogical( hb_numRound( dNumber1 - dNumber2, (int) MY_PRECISION ) == 0 ); ...is much simpler than the first one - Why should I not use this second solu

Re: [Harbour] Issue with hb_numRound in MSVS 2005

2008-08-14 Thread Przemyslaw Czerpak
On Thu, 14 Aug 2008, Randy Portnoff wrote: Hi Randy, > I have changed the numeric comparison functions in my Harbour version > to compensate for floating point issues when comparing numeric values > (it was must simpler doing it in Harbour than in the PRG code) - I > round all values to 8 deci

[Harbour] Issue with hb_numRound in MSVS 2005

2008-08-14 Thread Randy Portnoff
Hi all, I have changed the numeric comparison functions in my Harbour version to compensate for floating point issues when comparing numeric values (it was must simpler doing it in Harbour than in the PRG code) - I round all values to 8 decimal places before making the comparison - I have use