Re: double with precision
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 12:21:48 GMT
On Wed, 27 Jun 2007 18:25:16 -0400, "Roy Gourgi" <royng@xxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
Just out of curiosity why can't the number 1.74 be represented exactly with
a double?
because 1/100 is a repeater when expressed in binary just as 1/3 is a
repeater when expressed in decimal.
see http://mindprod.com/jgloss/floatingpoint.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- double with precision
- From: Roy Gourgi
- Re: double with precision
- From: Roy Gourgi
- double with precision
- Prev by Date: Re: Sort Method Conversion
- Next by Date: Re: Removing blanks spaces
- Previous by thread: Re: double with precision
- Next by thread: Sort Method Conversion
- Index(es):
Relevant Pages
|