Function: float32ToFloat16()
float32ToFloat16(
x):number
Scalar float32 -> float16 bit conversion, reusing DataUtils.toHalfFloat
(the same core three.js already ships and NeuralHalfFloatTexture.js's
packHalfFloatRGBA already relies on) rather than re-deriving the bit
twiddling.
Parameters
x
number
Returns
number