BGL Data Types

The following table describes the most often used integer, fractional, floating-point, and other data types in Flight Simulator.

Data type Memory usage Representation Range
Unsigned integer byte db  12h i 0–255
Signed integer byte db  12h I -128–127
Unsigned integer word dw  1234h ii 0–65535
Signed integer word dw  1234h ii -32768–32767
Unsigned fractional word dw  1234h ff 0–65535/65536 or .0000–.ffffh
24-bit signed integer db  56h, 34h, 12h iii -8388608–8388607
24-bit signed integer and fraction db  56h  ;fractional byte
dw  1234h  ;integer word ii.f 0000.00h–ffff.ffh
48-bit signed integer and fraction dw  9abch  ; fractional word
dd  12345678  ;integer dword iiii.ff 00000000.0000h–ffffffff.ffffh