REAL %B4ToReal32( INT in _b4, INT in _b3, INT in _b2, INT in _b1, ) |
_b4 | binary representation of value. Bits 24 .. 31 (the most significant byte) |
_b3 | binary representation of value. Bits 16 .. 23 |
_b2 | binary representation of value. Bits 8 .. 15 |
_b1 | binary representation of value. Bits 0 .. 7 (tne least significant byte) |
REAL _r ; valid Float 519.3165 _r := %B4ToReal32(%StrToI("16#44#"), %StrToI("16#01#"), %StrToI("16#D4#"), %StrToI("16#42#")) ; invalid Float _r := %B4ToReal32(%StrToI("16#7F#"), %StrToI("16#C0#"), %StrToI("16#00#"), %StrToI("16#00#")) |