REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 21-Aug-2010 Edit History  

REBOL 3 Functions: to-binary

to-binary  value

Converts to binary! value.

Arguments:

value

See also:

to  

Description

Returns a binary! value made from the given value.

probe to-binary "123456"
#{313233343536}

Notice, that the binary returned is not how the "actual storage" in computer memory looks. Instead, the bits are in "network order", which is, by convention, big endian:

to-binary 1
#{0000000000000001}


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin