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

money datatype

 [1/4] from: brett::codeconscious::com at: 23-Apr-2002 20:30


Has this been discussed / reported before?
>> equal? 0 $0
== false Thanks, Brett.

 [2/4] 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

 [3/4] from: anton:lexicon at: 24-Apr-2002 12:23


>> first US$0
== "US" Anton.

 [4/4] from: brett:codeconscious at: 24-Apr-2002 18:29


Thanks Gregg and Anton, Shows how much I've used this feature so far! :^) Thanks for your help. I shall RTxM again ! Brett.