Bug 16396 - Math problem under IA-64
Math problem under IA-64
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
7.1
ia64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2004-10-01 16:34:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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>

main()
{
     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.