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

[REBOL] Re: percent! - new datatype request

From: joel:neely:fedex at: 10-Jun-2002 7:08

Hi, Carl, Carl Read wrote:
> I think we need it, but not so much because it'd be easier (perhaps) > for programming, but because it's more descriptive. For instance, we > know what this means... > > prompt-payment-discount: $5.25 > > but does this... > > prompt-payment-discount: 5.25 > > mean money or percent? > > If it was this though... > > prompt-payment-discount: 5.25% > > we would know. >
That's what comments (or descriptive names) are for. prompt-payment-discount-percent: 5.25 prompt-payment-discount-factor: 1.0 - (5.25 * 0.01) or prompt-payment-discount: 0.0525 ;; 5 1/4 percent IMHO. -jn- -- ; Joel Neely joeldotneelyatfedexdotcom REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] { | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]