To hex

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   TO-HEX value /size len

DESCRIPTION

Converts numeric value to a hex issue! datatype (with leading # and 0's).

TO-HEX is a native value.

ARGUMENTS

  • value -- Value to be converted (integer! tuple!)

REFINEMENTS

  • /size -- Specify number of hex digits in result
    • len (integer!)

#SOURCE

to-hex: make native! [  [
    {Converts numeric value to a hex issue! datatype (with leading # and 0's).}
    value [integer! tuple!] "Value to be converted"
    /size "Specify number of hex digits in result"
    len [integer!]
] ]