[haXe] Weird bug...
filt3r at free.fr
filt3r at free.fr
Mon Apr 2 16:18:46 CEST 2007
Selon "Petersson, Tobias" <Tobias.Petersson at laerdal.dk>:
> > Then when I publish to Flash8 have the correct results, but when
> publish to flash9, it return .25, .30. 349999999, .399999997, ...
>
>
>
> That's normal behavior when it comes to translating a float value to
> text.
>
>
Hi!
I've seen this kind of problem some years ago...
Try this :
class Test
{
static function main()
{
var i = 0.0;
flash.Lib.current.onEnterFrame = function()
{
i += 0.01;
trace(i);
}
}
}
You'll see....
(on my Computer, around 8, it becomes 8.0000000000000001)
It's a float problem in flash
Michel
More information about the Haxe
mailing list