From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Re: How to use a float value with either GLYPH_DEBUG or NSTRACE Date: Mon, 21 Aug 2017 14:45:34 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1503351954 1887 195.159.176.226 (21 Aug 2017 21:45:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 21:45:54 +0000 (UTC) Cc: Alan Third , emacs-devel@gnu.org To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 21 23:45:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djuVz-0008Pr-QM for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2017 23:45:44 +0200 Original-Received: from localhost ([::1]:58902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djuW6-0008Lp-JQ for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2017 17:45:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djuVy-0008K6-3z for emacs-devel@gnu.org; Mon, 21 Aug 2017 17:45:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djuVt-0007Ah-6g for emacs-devel@gnu.org; Mon, 21 Aug 2017 17:45:42 -0400 Original-Received: from gateway23.websitewelcome.com ([192.185.49.179]:43707) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djuVs-00079i-Rv for emacs-devel@gnu.org; Mon, 21 Aug 2017 17:45:37 -0400 Original-Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway23.websitewelcome.com (Postfix) with ESMTP id AEA8B16B98 for ; Mon, 21 Aug 2017 16:45:35 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id juVEdWQhZc72gjuVEdMyuu; Mon, 21 Aug 2017 16:44:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KjS4N71bu7Yon/BVa1vaffT53nRCKceofu8UKc8l4+E=; b=QZoqi4HX7GosI0rNXjbrN8Jhlv 2D+h21CuSV3U3uA5eQUzzgBdW6lQs/V5qhWkcOEezEZxMsHofV/ctmJO0q0+F1eyqhEFlG858tpIm RBv0T7V9PDIBou/mfSoNtWiq60oUA4vSlSKVtdstxaLJqigQxUlqCW4JsDXOWhJrywO/f9QOOD/q0 Aq6vTwioqJCJh1mWBbLwvQ8n/vcpGpxTZjc0ooVNHh5CuOlfPZB27cWUBvKcIlmurL00nqOJlkHnF yN3ST5IOi3IwQRKh9Pcd5/KK1wMgrkXDLcUXxTWMOPtt4w+er+0OH2Bkr8bopPtVTLbODNWludykN Wp0eyY/Q==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:54219 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1djuVq-002tWn-Qt; Mon, 21 Aug 2017 16:45:34 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1djuVq-002tWn-Qt X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:54219 X-Source-Auth: lawlist X-Email-Count: 2 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.49.179 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217672 Archived-At: Thank you, Noam: Yes, that works nicely to eliminate the extra zeros and it also lets me see several decimal places when they have a value. Thank you also for the link to the floating point conversions page. Greatly appreciated, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [08-21-2017 14:30:52] <21 Aug 2017 17:30:52 -0400> FROM: Noam Postavsky > > * * * > > I think `%.20g' should give you that (the max precision of double is > about 17 decimal digits), although I would imagine that "the whole > thing" is usually more than is really useful. > > https://www.gnu.org/software/libc/manual/html_node/Floating_002dPoint-Conversions.html