ezeio2:scriptref:bufdec

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ezeio2:scriptref:bufdec [2023-08-18 23:03] andrehezeio2: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 | IEEE 732 64-bit floating point (converts to 32 bit float) | 
-BT_FLOATLE 32 bit | float | IEEE 732 64-bit floating point little endian (converts to 32 bit float) |+BT_FLOAT64LE 64 bit | float64 | IEEE 732 64-bit floating point little endian (converts to 32 bit float) |
  
 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 ''%%BT_BITOFS5 | BT_BITMASK3%%'' Example: To extract a 3 bit value from bit position 5,6 and 7, use ''%%BT_BITOFS5 | BT_BITMASK3%%''
- 
-NOTE: Pawn 'cells' supports only signed 32 bit integer values, and 32 bit float values. 
  
 === 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 ===
  • ezeio2/scriptref/bufdec.1692399834.txt.gz
  • Last modified: 2023-08-18 23:03
  • by andreh