[flexcoders] Re: float-safe bitwise AND comparison

2009-01-19 Thread Rafael Faria
Thanks Josh. I kinda managed to get it working. so for the records if someone else need it, it seems to work fine. private function safeBitCheck(num:Number,comparison:Number):Boolean { if(num 2147483647 ) { return (num

Re: [flexcoders] Re: float-safe bitwise AND comparison

2009-01-19 Thread Josh McDonald
This method is 10x faster, and more accurate (although the word is meaningless at such scale due to the nature of IEEE floats): private function safeBitCheck2(l : Number, r : Number) : Boolean { if (r l) return false; if