From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: VanL Newsgroups: gmane.emacs.help Subject: Re: `string-to-number' 0 Date: Wed, 26 Feb 2020 18:37:50 +1100 Message-ID: References: <87a756gedt.fsf@ebih.ebihd> <875zfugdip.fsf@ebih.ebihd> <871rqigcs7.fsf_-_@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="71595"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: moasenwood@zoho.eu To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:0Y9UWXH7Pt3wK3xY/AhPdbYa8oE= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 26 10:19:25 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6sqj-000IXd-4M for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Feb 2020 10:19:25 +0100 Original-Received: from localhost ([::1]:40772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6sqh-0002lJ-Vt for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Feb 2020 04:19:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44374) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6rGc-0000Ao-4F for help-gnu-emacs@gnu.org; Wed, 26 Feb 2020 02:38:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6rGa-0007Ff-Mp for help-gnu-emacs@gnu.org; Wed, 26 Feb 2020 02:38:01 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39139) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6rGa-00076H-Gx for help-gnu-emacs@gnu.org; Wed, 26 Feb 2020 02:38:00 -0500 X-Originating-IP: 202.7.193.65 Original-Received: from turing (202-7-193-65.static.tpgi.com.au [202.7.193.65]) (Authenticated sender: destroy.c@emacs.zone) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 37FC4E000A; Wed, 26 Feb 2020 07:37:54 +0000 (UTC) In-Reply-To: <871rqigcs7.fsf_-_@ebih.ebihd> (Emanuel Berg via Users list for the's message of "Wed, 26 Feb 2020 06:04:08 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.196 X-Mailman-Approved-At: Wed, 26 Feb 2020 04:17:33 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122476 Archived-At: > (string-to-number "a") ; 0 > (string-to-number "0") ; 0 > (string-to-number "1") ; 1 > > From the docstring: "Return 0 if STRING cannot > be parsed as an integer or floating > point number." (string-to-number "") ; 60 Should "a" or "" give nil from string-to-number?