Rebol Programming/enbase

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:

[edit | edit source]
ENBASE value /base base-value 

DESCRIPTION:

[edit | edit source]

Converts a string to a different base representation.

ENBASE is a native value.

ARGUMENTS

[edit | edit source]
  • value -- The string to encode (Type: any-string)

REFINEMENTS

[edit | edit source]
  • /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 | edit source]
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"
]