Rebol Programming/debase

USAGE:

edit
DEBASE value /base base-value 

DESCRIPTION:

edit

Converts a string from a different base representation to binary.

DEBASE is a native value.

ARGUMENTS

edit
  • value -- The string to convert (Type: any-string)

REFINEMENTS

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

SOURCE CODE

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