On Wed, Oct 19, 2011 at 01:19:51PM -0700, Fred Cisin wrote:
On Wed, 19 Oct 2011, David Cantrell wrote:
I would like to be able to:
* mark a variable as being an approximation, and with how precise it is;
THAT is
already present. "float" in C means that it is an approximation
to 24 binary significant digits.
No, it tells you that it can *represent no more than* 24 binary
significant digits.
float pi = 3.1f; /* close enough for government work */
that the *type* can have 24 significant binary digits doesn't mean
that the *data* has 24 significant binary digits.
--
David Cantrell | top google result for "topless karaoke murders"
EINE KIRCHE! EIN KREDO! EIN PAPST!