Br scalar

From Foone Wiki
Jump to: navigation, 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.