Le 30/04/2014 12:02, Andy Li a écrit :
> The reason I mentioned the value of Int64 could be outside the 32-bit
> range, is that we cannot use toInt:
> var float:Float = Int64.toInt(int64); //toInt will fail, because
> Int is 32-bit only
>
> Float is a floating point number which is already able to store the
> whole range of Int64, no matter using single/double precision.
> And actually all the current Haxe targets use double precision floating
> point number for Float, which is 64-bit.
For the same reason there can be lose of precisions when multiplying two
Int32 stored as double precision floats.
Best,
Nicolas