Last modified on 27 October 2012, at 22:09

REBOL Programming/enbase

USAGE:Edit

ENBASE value /base base-value 

DESCRIPTION:Edit

Converts a string to a different base representation.

ENBASE is a native value.

ARGUMENTSEdit

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

REFINEMENTSEdit

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

SOURCE CODEEdit

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