Java 8 RFR 6476168: (fmt) Inconsistency formatting subnormal doubles with hexadecimal conversion
Brian Burkhalter
brian.burkhalter at oracle.com
Sat Jul 20 00:38:38 UTC 2013
On Jul 19, 2013, at 5:38 PM, Joseph Darcy wrote:
> A spec quibble "decimal separator" isn't really the appropriate term for the hex formatting.
True. "Hex separator?"
> I think some more test cases and needed:
>
> * Subnormal result rounding up to normal range under reduced precision. Something like nextDown(Double.MIN_NORMAL) (a subnormal value) rounded to between 1 and 11 digits of precision.
I actually had that in a test case outside JTREG but did not include it; will do so.
> * Double.MAX_VALUE rounded to fewer than 12 digits. Offhand, I'm not sure what the implementation will do here; returning infinity or a hex string with an extra big exponent are both defensible.
Will try it out.
Thanks,
Brian
More information about the core-libs-dev
mailing list