From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "guile@discard.email" Newsgroups: gmane.lisp.guile.bugs Subject: bug#18932: #18932 string->number errors on e.g. "1e400xyz" Date: Wed, 21 Jan 2015 12:36:50 +0100 Message-ID: References: <877fzcbpxh.fsf@taylan.uni.cx> Reply-To: guile@discard.email NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_d476e7779d5a41caf4d791d607175acd" X-Trace: ger.gmane.org 1421877953 4509 80.91.229.3 (21 Jan 2015 22:05:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 22:05:53 +0000 (UTC) To: 18932@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jan 21 23:05:53 2015 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YE3PL-0002GN-IB for guile-bugs@m.gmane.org; Wed, 21 Jan 2015 23:05:51 +0100 Original-Received: from localhost ([::1]:50362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE3PK-00036l-QS for guile-bugs@m.gmane.org; Wed, 21 Jan 2015 17:05:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzbX-0000LN-GS for bug-guile@gnu.org; Wed, 21 Jan 2015 13:02:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDzbP-0001AH-Qp for bug-guile@gnu.org; Wed, 21 Jan 2015 13:02:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzbP-0001A7-Ni for bug-guile@gnu.org; Wed, 21 Jan 2015 13:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YDzbP-0007Ot-H8 for bug-guile@gnu.org; Wed, 21 Jan 2015 13:02:03 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <877fzcbpxh.fsf@taylan.uni.cx> Resent-From: "guile@discard.email" Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 21 Jan 2015 18:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18932 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 18932-submit@debbugs.gnu.org id=B18932.142186327028355 (code B ref 18932); Wed, 21 Jan 2015 18:02:03 +0000 Original-Received: (at 18932) by debbugs.gnu.org; 21 Jan 2015 18:01:10 +0000 Original-Received: from localhost ([127.0.0.1]:52080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDzaX-0007NF-EG for submit@debbugs.gnu.org; Wed, 21 Jan 2015 13:01:10 -0500 Original-Received: from app.discard.email ([37.120.161.148]:35337) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDtae-0004h3-9T for 18932@debbugs.gnu.org; Wed, 21 Jan 2015 06:36:53 -0500 Original-Received: by app.discard.email (Postfix, from userid 33) id 1C330E19A5; Wed, 21 Jan 2015 12:36:50 +0100 (CET) X-PHP-Originating-Script: 0:PHPMailer.class.php X-Priority: 3 X-Mailer: PHPMailer 5.2.9 (https://github.com/PHPMailer/PHPMailer/) X-Mailman-Approved-At: Wed, 21 Jan 2015 13:01:08 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 21 Jan 2015 17:05:48 -0500 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7714 Archived-At: --b1_d476e7779d5a41caf4d791d607175acd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Note that guile 2.0.11 also gives strange results for large negative expone= nts: scheme@(guile-user)> (string->number "1e-400")ERROR: In procedure string->n= umber:ERROR: In procedure string->number: Value out of range: -400 =C2=A0 For comparison, in Scheme 48 1.9 (string->number "1e-400") =3D> 0.0 (string->number "1e400") =3D> +inf.0 (string->number "1e400xyz") =3D> #f --b1_d476e7779d5a41caf4d791d607175acd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Note that guile 2.0.11 also gives strange results for large negative exp= onents:

scheme@(guile-user)> (string->number "1e-400")
ERROR: In proc= edure string->number:
ERROR: In procedure string->number: Value = out of range: -400

 

For comparison, in Scheme 48 1.9

(string->number "1e-400") =3D> 0.0

(string->number "1e400") =3D> +inf.0

(string->number "1e400xyz") =3D> #f

--b1_d476e7779d5a41caf4d791d607175acd--