io.FPHelper

FPHelper

package haxe-io

Available on all platforms

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

Static methods

static doubleToI64 (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

static floatToI32 (f:Float):Int

Available on cpp, cs, flash, java, js, lua, macro, neko, php, python

static floatToI32 (f:Single):Int

Available on hl

static i32ToFloat (i:Int):Float

Available on cpp, cs, flash, java, js, lua, macro, neko, php, python

static i32ToFloat (i:Int):Single

Available on hl

static i64ToDouble (low:Int, high:Int):Float

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/haxe/io/FPHelper.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部