Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #20709 > unrolled thread

Re: Floating Point Representation (Question)

Started byEric Sosman <esosman@comcast-dot-net.invalid>
First post2012-12-26 13:36 -0500
Last post2012-12-26 13:36 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Floating Point Representation (Question) Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-26 13:36 -0500

#20709 — Re: Floating Point Representation (Question)

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2012-12-26 13:36 -0500
SubjectRe: Floating Point Representation (Question)
Message-ID<kbfg41$ol8$1@dont-email.me>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web