Loading

->LONGBYTES


binary conversion
Since v2.1.0
Available on all platforms

->LONGBYTES converts a LONG to a byte array. It expects a number of bytes on the top of the stack.

Since Warp 10™ 2.1, ->LONGBYTES can also convert a list of LONG.

Signature

Examples

//number to byte array conversion 42.55e9 ->DOUBLEBITS 8 ->LONGBYTES TOLONG DOUBLEBITS-> // double to double on a long to bytes to long to double 42.55e6 ->FLOATBITS 4 ->LONGBYTES TOLONG FLOATBITS-> // double to float on a long to bytes to long to double //create a 3 bytes array 0x8A2801 3 ->LONGBYTES ->HEX // 0x1234 will be ignored. 0x12348A2801 3 ->LONGBYTES ->HEX // will return 00 FF 255 2 ->LONGBYTES ->HEX //will return 255 (0 GET is the most significant byte... here, 0) 255 2 ->LONGBYTES 1 GET