[haXe] Weird bug...

Sean Charles sean.charles at objitsu.com
Mon Apr 2 16:46:35 CEST 2007


understand perfectly.
I learnt that you *never* relay on zero being equal to zero when FP  
is involved as rounding errors ensure you will early always fail, as  
you correctly state, you should test the difference for being less  
than an acceptable threshold for your application

	abs( a - b ) < limit

how about functions called, $fp< $fp>, $fp== etc ?


On 2 Apr 2007, at 15:42, filt3r at free.fr wrote:

>
> That's why, when you make some test like if ( i == 14.50 ) or  
> something like
> that, prefer the difference and not stric equality ( i - 14.50 <=  
> 0.05 ) to
> avoid some weired bugs in flash, and haXe too... And I think we  
> cannot do
> anything to haXe to perform that :( It's flash player stuff, isn't  
> it ?
> hmmmm I'm always afraid if someone will understand my poor english ^^
>
>> lmao.  I'd only just gotten into Spectrum BASIC then, and discovered
>> what the hell a string was ;-)  I originally thought it was the  
>> name of
>> the dollar symbol programmers kept attaching to stuff.  :-D
>>
>> Lee
>>
>>
>> Sean Charles wrote:
>>> bloody floats!
>>>
>>> I once had to write an IEEE floating point library in 8085
>>> assembler... now that was fun!  The only saving feature was the that
>>> HP64000 ICE system used the same format but byte-reversed so at  
>>> least
>>> checking the answers was easy!
>>>
>>> I still wake up sweating at night over that one!
>>>
>>> PS: This was about 20 years ago!!!
>>>
>>>
>>>
>>> On 2 Apr 2007, at 15:20, filt3r at free.fr wrote:
>>>
>>>> Nothing linked to pixels, twips or text casting ....
>>>> just float problem :(
>>>>
>>>> --haXe - an open source web programming language
>>>> http://haxe.org
>>>>
>>>
>>>
>>>
>>> --haXe - an open source web programming language
>>> http://haxe.org
>>>
>>
>>
>> --
>> haXe - an open source web programming language
>> http://haxe.org
>>
>
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>





More information about the Haxe mailing list