Difference between revisions of "Br scalar"

From Foone Wiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 10:34, 5 January 2019

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.