Rebol 程式設計/enbase
外觀
ENBASE value /base base-value
將字串轉換為不同的基數表示。
ENBASE 是一個原生值。
- value -- 要編碼的字串(型別:any-string)
- /base -- 允許選擇不同的基數進行轉換
- base-value -- 要轉換到的基數:64、16 或 2(型別:any)
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"
]