< Rebol Programming
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
This article is issued from
Wikibooks.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.