Skip to content
Chung Leong edited this page Jan 10, 2022 · 3 revisions

pack_le - Pack a scalar into binary string in little-endian format

string pack_le(number $num)

pack_be() returns the binary representation in little-endian format of an integer or floating point number. Currently the function only accepts scalars.

Parameters

num - The number to process.

Return Value

A binary string containing num.

Version

1.0 and above.

Clone this wiki locally