Re: Re: negative exponents
Roger Corman <[email protected]> Mon, 03 Nov 2003 13:53:27 -0800
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <[email protected]> |
I will check this out and try to get a patch out right away. I will notify this message group when it's resolved. Roger At 02:52 AM 11/3/2003, you wrote: >Hi Nigel, > > >> Date: Mon, 3 Nov 2003 10:48:04 +1000 >> From: [email protected] >> Subject: negative exponents in negative doubles >> >> why does in IDE >> (setf z 4.0D-5) >> echo >> 4.0d-5 >> >> while >> (setf zz -4.0D-5) >> echo >> -4.0d0 > > Whoa... I reproduced your example. An even simpler version is: > > Try evaluating > >-1e+5 >echo >0.0 > > It seems that any negative number for the mantissa will fail, >regardless of the exponent. > > This is really bad! I'm hoping to do some scientific computing in >CormanLisp. > > Any patches or suggestions? My problem is my code might accidently >parse text data with -1e+5 without my knowing, and without returning an >error, and then evaluating it to 0.0. > >Sincerely, >--Anthony Yan > > > >To unsubscribe from this group, send an email to: >[email protected] > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/