collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
869 stars 99 forks source link

Decode fixed-point numbers as floating-point int bits #114

Open collinsmith opened 3 years ago

collinsmith commented 3 years ago

Java encodes floats in IEEE 754. Would be nice if with some bit shifting, I can return the fixed-point encoded bits as a floating-point result using Fixed#intBitsToFloat.