| 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...
|
 |
 |
|
|
subject: Hexadecimal Floating-point literal
|
|
|