Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: money datatype

From: greggirwin:mindspring at: 23-Apr-2002 9:46

Hi Brett, << Has this been discussed / reported before?
>> equal? 0 $0
== false
>>
money! is actually dual-element datatype, though you certainly wouldn't think of it that way at a glance. It contains two component values. The denomination and the value.
>> 0 = $0
== false
>> 0 = second $0
== true
>> type? first $0
== string!
>> type? second $0
== decimal! HTH! --Gregg