Helper that converts between floating point and binary representation. Always works in low-endian encoding.

Static methods

@:has_untyped@:keepstaticdoubleToI64(v:Float):Int64

Returns an Int64 representing the bytes representation of the double precision IEEE float value. WARNING : for performance reason, the same Int64 value might be reused every time. Copy its low/high values before calling again. We still ensure that this is safe to use in a multithread environment

@:has_untyped@:keepstaticfloatToI32(f:Float):Int

Available on cpp, flash, php, js, macro, jvm, neko, lua, python

staticfloatToI32(f:Single):Int

Available on hl

@:has_untyped@:keepstatici32ToFloat(i:Int):Float

Available on cpp, flash, php, js, macro, jvm, neko, lua, python

statici32ToFloat(i:Int):Single

Available on hl

@:has_untyped@:keepstatici64ToDouble(low:Int, high:Int):Float