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

Static methods

@:keepstaticdoubleToI64(v:Float):Int64

Available on cpp, jvm, macro, js, flash, hl, neko, php

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

staticdoubleToI64(v:Float):Int64

Available on lua, python

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.

@:keep@:analyzer(no_user_var_fusion)staticfloatToI32(f:Float):Int32

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

staticfloatToI32(f:Single):Int32

Available on hl

@:keepstatici32ToFloat(i:Int32):Float

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

statici32ToFloat(i:Int32):Single

Available on hl

@:keepstatici64ToDouble(low:Int32, high:Int32):Float