>be ( x n -- byte-array )
Factor handbook > Input and output > Working with binary data

Prev:le> ( seq -- x )
Next:>le ( x n -- byte-array )


Vocabulary
io.binary

Inputs and outputs
xan integer
na non-negative integer
byte-arraya byte-array


Word description
Converts an integer x into a string of n bytes in big endian order. Truncation will occur if the integer is not in the range [-2^(8n),2^(8n)).

Definition