Re: double with precision



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



.