Re: negative exponents
"Anthony K. Yan" <[email protected]> Mon, 3 Nov 2003 05:52:20 -0500
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------ 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/