Bug 16396 - Math problem under IA-64
Math problem under IA-64
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
ia64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2000-08-16 17:06 EDT by Nathaniel Woods
Modified: 2007-04-18 12:28 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-01 16:34:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nathaniel Woods 2000-08-16 17:06:30 EDT
Take this C program:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

     double d;

     d = 1.401298 * pow(10, -45);
     printf("d=%g\n", (double) (float) d);

One would expect that the output would be 1.401298e-45 or 0 if a float
cannot contain this number.  Instead, I get 2.65249e-315.  Whats up
with this?
Comment 1 Richard Henderson 2004-10-01 16:34:51 EDT
Works at least as of glibc-2.3.2-95.6.

Note You need to log in before you can comment on or make changes to this bug.