USAGE: edit

ENBASE value /base base-value 

DESCRIPTION: edit

Converts a string to a different base representation.

ENBASE is a native value.

ARGUMENTS edit

  • value -- The string to encode (Type: any-string)

REFINEMENTS edit

  • /base -- Allow a selection of a different base for conversion
    • base-value -- The base to convert to: 64, 16, or 2 (Type: any)

SOURCE CODE edit

enbase: native[
    {Converts a string to a different base representation.} 
    value [any-string!] "The string to encode" 
    /base {Allow a selection of a different base for conversion} 
    base-value "The base to convert to: 64, 16, or 2"
]