• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hexadecimal Floating-point literal  RSS feed

 
Abdul Rehman
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all ranchers.
Could someone please explain or give link to any article, tutorial, etc. which explains hexadecimal floating-point literals. I haven't read about them in any Java book which I have, but, I found them given in Chapter 3 of the JLS 3rd Ed. It is written in Section 3.10.2 that:-

---------------------------------------
FloatingPointLiteral:
DecimalFloatingPointLiteral
HexadecimalFloatingPointLiteral

HexadecimalFloatingPointLiteral:
HexSignificand BinaryExponent FloatTypeSuffix[opt]

HexSignificand:
HexNumeral
HexNumeral
.
0x HexDigits[opt] . HexDigits
0X HexDigits[opt] . HexDigits

BinaryExponent:
BinaryExponentIndicator SignedInteger

BinaryExponentIndicator:
one of
p P
---------------------------------------

Could someone please explain the syntax, etc. of hexadecimal floating-point literals?

Thanks.
[ November 14, 2006: Message edited by: Abdul Rehman ]
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that definition explains it.
 
Abdul Rehman
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah... I read it with attention now & I think there is a fair explanation in there already. Thanks anyways...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!