format given value as implied type
Parameters
as value :any
Attributes
| binary | | format integer as binary |
| hex | | format integer as hexadecimal |
| octal | | format integer as octal |
| ascii | | transliterate string to ASCII |
| agnostic | | convert words in block to literals, if not in context |
| data | | parse input as Arturo data block |
| code | | convert value to valid Arturo code |
| pretty | | prettify generated code |
| unwrapped | | omit external block notation |
Returns
Examples
copy
print as.binary 123 ; 1111011
print as.octal 123 ; 173
print as.hex 123 ; 7b
copy
print as.ascii "thís ìß ñot à tést"
; this iss not a test
Related