< Rebol Programming

USAGE:

DEBASE value /base base-value 

DESCRIPTION:

Converts a string from a different base representation to binary.

DEBASE is a native value.

ARGUMENTS

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

REFINEMENTS

  • /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

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"
]

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.