Re: double with precision
- From: "Roy Gourgi" <royng@xxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 18:25:16 -0400
Thanks Eric,
Just out of curiosity why can't the number 1.74 be represented exactly with
a double?
Roy
"Roy Gourgi" <royng@xxxxxxxxxxxx> wrote in message
news:oXAgi.148279$lI4.805089@xxxxxxxxxxxxxxxxxxxxxx
Hi,
I would like to save my double variable with a precision of 2 decimal
places.
For example the double x = 1.7358
I would like x = 1.73 or 1.74 (rounded)
How would I do that.
TIA
Roy
.
- Follow-Ups:
- Re: double with precision
- From: Roedy Green
- Re: double with precision
- From: Eric Sosman
- Re: double with precision
- From: Daniel Dyer
- Re: double with precision
- From: Thomas Fritsch
- Re: double with precision
- References:
- double with precision
- From: Roy Gourgi
- double with precision
- Prev by Date: Re: double with precision
- Next by Date: Re: double with precision
- Previous by thread: Re: double with precision
- Next by thread: Re: double with precision
- Index(es):