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

Prev:>be ( x n -- byte-array )
Next:d>w/w ( d -- w1 w2 )


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 little endian order. Truncation will occur if the integer is not in the range [-2^(8n),2^(8n)).

Definition