>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help Dictionary

Conversions | 3!:

`3!:0 y`

Type. The internal type of the noun`y` ,`` encoded as follows:

`1` | boolean
`2` | literal
`4` | integer
`8` | floating point
`16` | complex
`32` | boxed
`64` | extended integer
`128` | rational

``

`1024` | sparse boolean
`2048` | sparse literal
`4096` | sparse integer
`8192` | sparse floating point
`16384` | sparse complex
`32768` | sparse boxed
`65536` | symbol
`131072` | unicode

`[x] 3!:1 y`

Convert to Binary Representation. In standard byte order, the bytes of a word are listed from most significant to least significant; in reverse byte order, the bytes are listed from least significant to most significant. For example, the 4-byte integer 265358979 is`0fd10e83` in standard byte-order and`830ed10f` in reverse byte-order. The PC is a reverse byte order machine.
The dyad`x 3!:1 y` applies to an array`y` and produces its binary representation, according to the atom`x` :

| `x` | word size | byte order
| 00 | 32 bits | standard
| 01 | 32 bits | reverse
| 10 | 64 bits | standard
| 11 | 64 bits | reverse

The monad`3!:1` produces the binary representation in the word size and byte order of the current machine.

`3!:2 y` | Convert from Binary/Hex Representation. Inverse of`3!:1` and of`3!:3` ;`` works on an argument in either word size and in either byte order.

`[x] 3!:3 y`

Hex Representation. Like`3!:1` ,`` but the result is a literal matrix of the hexadecimal representation. For example, under Windows:

       (3!:3 x); 3!:3 x,1p1 [ x=: 1 2 3 0 _1
    +--------+--------+
    |04000000|08000000|
    |00000000|00000000|
    |05000000|06000000|
    |01000000|01000000|
    |05000000|06000000|
    |01000000|00000000|
    |02000000|0000f03f|
    |03000000|00000000|
    |00000000|00000040|
    |ffffffff|00000000|
    |        |00000840|
    |        |00000000|
    |        |00000000|
    |        |00000000|
    |        |0000f0bf|
    |        |182d4454|
    |        |fb210940|
    +--------+--------+

`3!:4 y
3!:5 y`

Integer/Floating Conversion. If`ic=: 3!:4` and`fc=: 3!:5` ,`` then

`3 ic y` | J integers to sets of 8 characters (J64 only)
`_3 ic y` | sets of 8 characters to J integers (J64 only)
`2 ic y` | J integers to sets of 4 characters
`_2 ic y` | sets of 4 characters to J integers
`1 ic y` | J integers to sets of 2 characters
`_1 ic y` | sets of 2 characters to J integers
`0 ic y` | sets of 2 characters interpreted as unsigned integers to J integers
`2 fc y` | J floats to binary doubles
`_2 fc y` | binary doubles to J floats
`1 fc y` | J floats to binary short floats
`_1 fc y` | binary short floats to J floats

All ranks are infinite and all inverses of`k&ic` and`k&fc` exist for non-zero`k` .

`3!:6 y` | Lock Script. Converts plain script text into locked script text.

>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help Dictionary