as

format given value as implied type


Parameters

as value :any

Attributes

binaryformat integer as binary
hexformat integer as hexadecimal
octalformat integer as octal
asciitransliterate string to ASCII
agnosticconvert words in block to literals, if not in context
dataparse input as Arturo data block
codeconvert value to valid Arturo code
prettyprettify generated code
unwrappedomit external block notation

Returns

  • :any

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