You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
14 lines
283 B
C
14 lines
283 B
C
// jk i dont think this file is needed lol
|
|
// update: it was needed :(
|
|
|
|
// hopefully I'll only need s15.16
|
|
// ^ clueless
|
|
|
|
f32 qtof(int q) {
|
|
f32 lit = (float) ((q >> 16) & 0x7FFF);
|
|
if (q < 0) lit = -lit;
|
|
f32 dec = (float) ((float)(q & 0xFFFF) / (float)2^16);
|
|
return lit + dec;
|
|
}
|
|
|