DataUtils

A class containing utility functions for data conversion.

Methods

.toHalfFloat(val : Float) → Integer

val — a single precision floating point value.

Returns a half precision floating point value (represented as 16-bit integer) from the given single precision floating point value.

.fromHalfFloat(val : Integer) → Float

val — a half precision floating point value.

Returns a single precision floating point value from the given half precision floating point value (represented as 16-bit integer).

Source

For more info on how to obtain the source code of this module see this page.