B
bananaguyc
Okay, I'm running the following code in GCC 4.1.2:
<stdio.h>
int main(void)
{
long double test = 4.67e-4;
printf("float: %f e-notation: %e\n", test, test);
return 0;
}
I'm expecting something like the following results:
float: 0.000467 e-notation: 4.67000e-05
but instead, I get the following results:
float: -694415276597203906161323291068799052712651627473832627705136406154899829233891145764324516731136584994939249352577342742286164740704820047241658318432036343997321168388142931399907787574462172995952462873006898981791706009191971315944784829937771849187328.000000 e-notation: 4.802997e+149
What exactly is the issue here?
I'm using GCC 4.1.2 on an Intel p3, if that matters.
<stdio.h>
int main(void)
{
long double test = 4.67e-4;
printf("float: %f e-notation: %e\n", test, test);
return 0;
}
I'm expecting something like the following results:
float: 0.000467 e-notation: 4.67000e-05
but instead, I get the following results:
float: -694415276597203906161323291068799052712651627473832627705136406154899829233891145764324516731136584994939249352577342742286164740704820047241658318432036343997321168388142931399907787574462172995952462873006898981791706009191971315944784829937771849187328.000000 e-notation: 4.802997e+149
What exactly is the issue here?
I'm using GCC 4.1.2 on an Intel p3, if that matters.