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

[REBOL] Re: percent! - new datatype request

From: jason:cunliffe:verizon at: 6-Jun-2002 13:47

> And with it you could do something like: > > >> 100 - 50% > == 50 > >> 100 + 50% > == 150 > >> 100 * 50% > == 5000
Shouldn't that be
>> 100 - 50%
== 50%
>> 100 + 50%
== 150%
>> 100 * 50%
== 5000% and thus
>> rate: 8.25%
== 8.25%
>> price: $100.00
== $100.00
>> tax: price * rate
== $8.25
>> taxrate: to-percent [$8.25 / $100]
== 8.25% ?? ./Jason