Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ezeio2:scriptref:bufdec [2023-08-18 23:03] – andreh | ezeio2:scriptref:bufdec [2023-08-18 23:50] (current) – andreh | ||
---|---|---|---|
Line 31: | Line 31: | ||
^ BT_FLOAT | 32 bit | float | IEEE 732 floating point | | ^ BT_FLOAT | 32 bit | float | IEEE 732 floating point | | ||
^ BT_FLOATLE | 32 bit | float | IEEE 732 floating point little endian | | ^ BT_FLOATLE | 32 bit | float | IEEE 732 floating point little endian | | ||
- | ^ BT_FLOAT64 | 64 bit | float | IEEE 732 64-bit floating point (converts to 32 bit float) | | + | ^ BT_FLOAT64 | 64 bit | float64 |
- | ^ BT_FLOATLE | + | ^ BT_FLOAT64LE |
Also available for decoding bitmaps: | Also available for decoding bitmaps: | ||
Line 42: | Line 42: | ||
Example: To extract a 3 bit value from bit position 5,6 and 7, use '' | Example: To extract a 3 bit value from bit position 5,6 and 7, use '' | ||
- | |||
- | NOTE: Pawn ' | ||
=== Return value === | === Return value === | ||
Returns the decoded value | Returns the decoded value | ||
+ | |||
+ | Note that the returned value is always a 32 bit cell (signed 32 bit integer or 32 bit float). | ||
=== Example usage === | === Example usage === |