Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20709
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Floating Point Representation (Question) |
| Date | 2012-12-26 13:36 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <kbfg41$ol8$1@dont-email.me> (permalink) |
| References | <floating-20121226170657@ram.dialup.fu-berlin.de> |
On 12/26/2012 11:22 AM, Stefan Ram wrote:
> AFAIK 0.1 in hex is 0x1.(9)ap-4, where »(9)« means an
> infinite sequence of »9«.
What's the "a" for? ;-)
> However, Java only stores a
> finite number of 9s:
>
> printf( "%a%n", 0.1 )
> 0x1.999999999999ap-4
"One, point, twelve nines, A, exponent." See the "A?"
--
Eric Sosman
esosman@comcast-dot-net.invalid
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
Re: Floating Point Representation (Question) Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-26 13:36 -0500
csiph-web