urbit/base/pub/doc/hoon/runes/dt/dtzy.md

48 lines
817 B
Markdown
Raw Normal View History

2015-02-18 06:03:21 +03:00
[dotzey, %dtzy](#dttr)
======================
Odored atom
`dotzay` is a natural hoon that produces a non-cubed atomic constant of
odor `p` and value `q`. `dotzay` is never used explicitly, but always
implicitly to give odors to atoms.
Produces
--------
Twig: `[%dtzy p=term q=@]`
Sample
------
`p` is a [`++term`](). `q` is an [atom]().
Tall form
---------
None
Wide form
---------
None
Irregular form
--------------
None
Examples
--------
~zod/try=> (ream '12')
[%dtzy p=%ud q=12]
~zod/try=> (ream '&')
[%dtzy p=%f q=0]
~zod/try=> (ream '~.sam')
[%dtzy p=%ta q=7.168.371]
Here we use [`++ream`]() to unpack how values are parsed. Passing what
what would appear to be constants reveals that they are in fact parsed
into an odor [`++term`] and their numeric atom representation.