?
=?ISO-8859-1?Q?=22Nils_O=2E_Sel=E5sdal=22?=
This one does it for me.. is it the printf fscking up, or ..dandelion said:----- Original Message -----
From: "Fred Ma" <[email protected]>
Newsgroups: comp.lang.c
Sent: Friday, October 22, 2004 2:03 PM
Subject: Re: Can a double always represent an int exactly?
Of course, that's why I wrote "seldomly". And which implementation would
return 1.000000, exactly? I'm curious. Try a few CPU's/FPU's and check the
results. I'll buy you a beer if
you find one.
#include <math.h>
#include <stdio.h>
float divide_me(float f){
return f/M_PI;
}
int main()
{
printf("%.26f\n",divide_me(M_PI));
return 0;
}