[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -0.00000?
From: |
Gabriel Zachmann |
Subject: |
Re: -0.00000? |
Date: |
12 Sep 2001 23:27:52 GMT |
User-agent: |
slrn/0.9.7.0 (Linux) |
> >> > Occasionally, when I printf("%f") a float value,
> >> > I get -0.00000 as output (or -0 when I printf("%g") ).
> >> [-]
> >> Yes, this is legal and all that.
> >
> > Well, that's a pity - I never got that under IRIX on SGI ...
> [-]
> IEEE standard, but I didn't know either. Just ran into it and
I changed my printf to printf("%.8f") -
still I get -0.00000000.
Surely, the IEEE standard doesn't state that there is some kind of
"hidden" precision bits, which will never get printed?
Gab.
--
/---------------------------------------------------------------------\
| And what if all of animated nature |
| Be but organic Harps diversely fram'd, |
| That tremble into thought, as o'er them sweeps |
| Plastic and vast, one intellectual breeze, |
| At once the Soul of each, and God of all? (Samuel Taylor Coleridge)|
| |
| address@hidden __@/' address@hidden |
| web.informatik.uni-bonn.de/~zach __@/' www.gabrielzachmann.org |
\---------------------------------------------------------------------/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: -0.00000?,
Gabriel Zachmann <=