binary
| Syntax |
binary (value)
|
| Params |
value is the object you wish to coerce to be a binary datatype.
|
| Action |
Coerces value to be a binary value.
|
| Returns |
A binary representation of the data in value
|
| Examples |
binary (23) » 0x00000017 // the binary representation of decimal 23
binary ('a')
binary ('abcd') // using a value of datatype str4
binary ("What?")
binary (true)
binary (infinity)
|
| Notes |
The binaryType of the binary value is set to typeOf (value).
|
| See Also |
getBinaryType
|