Br scalar

From Foone Wiki
Revision as of 10:34, 5 January 2019 by <bdi>Foone</bdi> (talk | contribs) (Created page with "br_scalar is a fixed-point format indicating a decimal number. It's signed, 32bits (4bytes) To convert to floating point, interpret as a signed 32 bit integer and divide by 6...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

br_scalar is a fixed-point format indicating a decimal number. It's signed, 32bits (4bytes)

To convert to floating point, interpret as a signed 32 bit integer and divide by 65536 (216)

To convert from floating point to br_scalar, multiply by 65536 and represent as a signed 32bit integer.