From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18808 invoked by alias); 18 Jan 2008 02:13:50 -0000 Received: (qmail 18789 invoked by uid 22791); 18 Jan 2008 02:13:48 -0000 X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Jan 2008 02:13:23 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id m0I2DLSs005309 for ; Thu, 17 Jan 2008 20:13:21 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 17 Jan 2008 20:13:21 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: -var-update using formatted value Date: Fri, 18 Jan 2008 02:13:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA2DE092@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04290E1B@ecamlmw720.eamcs.ericsson.se><18311.60638.724524.220449@kahikatea.snap.net.nz><20080111225928.GA26360@caradoc.them.org><18311.65093.38930.103045@kahikatea.snap.net.nz><20080111235219.GA29698@caradoc.them.org><6D19CA8D71C89C43A057926FE0D4ADAA2DE08B@ecamlmw720.eamcs.ericsson.se><20080112034900.GA8947@caradoc.them.org><6D19CA8D71C89C43A057926FE0D4ADAA2DE08C@ecamlmw720.eamcs.ericsson.se> <18319.63598.936864.296815@kahikatea.snap.net.nz> From: "Marc Khouzam" Cc: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00160.txt.bz2 I think you are referring to the code that uses "%.9g" The format "%#.9g" could be used instead... But trailing zeros will not be removed at all, so 1.0 will be 1.000000000 i= nstead of 1 but this will also be true for numbers like 1.11 which would not be 1.11000= 0000 That is probably not a good thing -----Original Message----- From: Nick Roberts [mailto:nickrob@snap.net.nz] Sent: Thu 1/17/2008 7:53 PM To: Marc Khouzam Cc: gdb@sources.redhat.com Subject: RE: -var-update using formatted value =20 > I noticed that GDB prints floating point numbers such as "1.0" as > "1". This seems to be an unfortunate consequence of the g conversion specifier. --=20 Nick http://www.inet.net.nz/~nick= rob