411 REFERENCE · Wikibooks
Rebol Programming/Rebol2 money datatype
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Every Rebol2 money value consist of two parts: currency code (can be empty) and a numeric value of the decimal! type.
The parts can be obtained as follows:
; define a money value
>> x: USD$1
== USD$1.00
; access its currency code
>> x/1
== "USD"
; access its numeric value
>> x/2
== 1.0