Last modified on 27 October 2012, at 22:14

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.

ARGUMENTSEdit

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

REFINEMENTSEdit

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

SOURCE CODEEdit

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

{{BookCat}}