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

pack_be - Pack a scalar into binary string in big-endian format

string pack_be(number $num)

pack_be() returns the binary representation in big-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