as

format given value as implied type


Parameters

as value :any

Attributes

binaryformat integer as binary
hexformat integer as hexadecimal
octalformat integer as octal
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

Related