Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20709
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Floating Point Representation (Question) |
| Date | Wed, 26 Dec 2012 13:36:49 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <kbfg41$ol8$1@dont-email.me> (permalink) |
| References | <floating-20121226170657@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Wed, 26 Dec 2012 18:36:49 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="25256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/YPXagK9kbZq/bGmWr/LJ" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
| In-Reply-To | <floating-20121226170657@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:Si5NvgjJDGeNJHR8Ko9KlEN1spM= |
| Xref | csiph.com comp.lang.java.programmer:20709 |
Show key headers only | View raw
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