File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Hexadecimal Floating-point literal Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Hexadecimal Floating-point literal" Watch "Hexadecimal Floating-point literal" New topic
Author

Hexadecimal Floating-point literal

Abdul Rehman
Ranch Hand

Joined: Nov 07, 2006
Posts: 65
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 ]

SCJP 5.0 (100%)
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
I think that definition explains it.
Abdul Rehman
Ranch Hand

Joined: Nov 07, 2006
Posts: 65
Yeah... I read it with attention now & I think there is a fair explanation in there already. Thanks anyways...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hexadecimal Floating-point literal
 
Similar Threads
floating literal question
Numerice value for letter 'a'
integral literals ?
Way to SEARCH the APIs ?
what "# HexDigits "?