From mika@dogmatix.cs.caltech.edu  Fri Nov 14 18:34:56 1997
Received: from vlsi.cs.caltech.edu (vlsi.cs.caltech.edu [131.215.131.129])
          by hub.freebsd.org (8.8.7/8.8.7) with SMTP id SAA23404
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Nov 1997 18:34:55 -0800 (PST)
          (envelope-from mika@dogmatix.cs.caltech.edu)
Received: from dogmatix.cs.caltech.edu by vlsi.cs.caltech.edu (4.1/1.34.1)
	id AA18873; Fri, 14 Nov 97 18:34:53 PST
Received: (from mika@localhost)
	by dogmatix.cs.caltech.edu (8.8.8/8.8.7) id SAA01073;
	Fri, 14 Nov 1997 18:34:48 -0800 (PST)
Message-Id: <199711150234.SAA01073@dogmatix.cs.caltech.edu>
Date: Fri, 14 Nov 1997 18:34:48 -0800 (PST)
From: Mika Nystroem <mika@cs.caltech.edu>
Reply-To: mika@cs.caltech.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: gdb doesn't understand exponential notation
X-Send-Pr-Version: 3.2

>Number:         5046
>Category:       bin
>Synopsis:       gdb doesn't understand exponential notation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 14 18:40:01 PST 1997
>Closed-Date:    Sat Nov 22 22:06:07 PST 1997
>Last-Modified:  Sat Nov 22 22:08:38 PST 1997
>Originator:     Mika Nystroem
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
	Department of Computer Science
	California Institute of Technology
>Environment:

	

>Description:

gdb simply doesn't understand exponential notation

GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc.
(gdb) print 1e2+1
$1 = 1
(gdb) print 1e2
$2 = 0
(gdb) 

the answers should be 101 and 100, respectively.  I am told this problem
was introduced somewhere between 2.1.5-RELEASE and 2.2-STABLE and
remains to this day.  This makes it extremely painful to debug
any code that involves small or large floating-point numbers.

>How-To-Repeat:

See above.

>Fix:
	
I have no idea.  I spent hours trying to figure out how gdb works.....
The same thing happens with a fresh 4.16 from the FSF, by the way.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Sat Nov 22 22:06:07 PST 1997 
State-Changed-Why:  
Fixed in rev.1.12 of stdio/vfscanf.c.  %Lg in c-exp.y didn't work. 
>Unformatted:
