jdk/src/java.base/share/classes/java/lang/Double.java
changeset 46148 6d8e27cd2f1e
parent 45124 144479e89cdb
equal deleted inserted replaced
46147:047bdc4d771d 46148:6d8e27cd2f1e
   253      *
   253      *
   254      * </ul>
   254      * </ul>
   255      *
   255      *
   256      * </ul>
   256      * </ul>
   257      *
   257      *
   258      * <table class="plain">
   258      * <table class="striped">
   259      * <caption>Examples</caption>
   259      * <caption>Examples</caption>
   260      * <thead>
   260      * <thead>
   261      * <tr><th>Floating-point Value</th><th>Hexadecimal String</th>
   261      * <tr><th scope="col">Floating-point Value</th><th scope="col">Hexadecimal String</th>
   262      * </thead>
   262      * </thead>
   263      * <tbody>
   263      * <tbody style="text-align:right">
   264      * <tr><td>{@code 1.0}</td> <td>{@code 0x1.0p0}</td>
   264      * <tr><th scope="row">{@code 1.0}</th> <td>{@code 0x1.0p0}</td>
   265      * <tr><td>{@code -1.0}</td>        <td>{@code -0x1.0p0}</td>
   265      * <tr><th scope="row">{@code -1.0}</th>        <td>{@code -0x1.0p0}</td>
   266      * <tr><td>{@code 2.0}</td> <td>{@code 0x1.0p1}</td>
   266      * <tr><th scope="row">{@code 2.0}</th> <td>{@code 0x1.0p1}</td>
   267      * <tr><td>{@code 3.0}</td> <td>{@code 0x1.8p1}</td>
   267      * <tr><th scope="row">{@code 3.0}</th> <td>{@code 0x1.8p1}</td>
   268      * <tr><td>{@code 0.5}</td> <td>{@code 0x1.0p-1}</td>
   268      * <tr><th scope="row">{@code 0.5}</th> <td>{@code 0x1.0p-1}</td>
   269      * <tr><td>{@code 0.25}</td>        <td>{@code 0x1.0p-2}</td>
   269      * <tr><th scope="row">{@code 0.25}</th>        <td>{@code 0x1.0p-2}</td>
   270      * <tr><td>{@code Double.MAX_VALUE}</td>
   270      * <tr><th scope="row">{@code Double.MAX_VALUE}</th>
   271      *     <td>{@code 0x1.fffffffffffffp1023}</td>
   271      *     <td>{@code 0x1.fffffffffffffp1023}</td>
   272      * <tr><td>{@code Minimum Normal Value}</td>
   272      * <tr><th scope="row">{@code Minimum Normal Value}</th>
   273      *     <td>{@code 0x1.0p-1022}</td>
   273      *     <td>{@code 0x1.0p-1022}</td>
   274      * <tr><td>{@code Maximum Subnormal Value}</td>
   274      * <tr><th scope="row">{@code Maximum Subnormal Value}</th>
   275      *     <td>{@code 0x0.fffffffffffffp-1022}</td>
   275      *     <td>{@code 0x0.fffffffffffffp-1022}</td>
   276      * <tr><td>{@code Double.MIN_VALUE}</td>
   276      * <tr><th scope="row">{@code Double.MIN_VALUE}</th>
   277      *     <td>{@code 0x0.0000000000001p-1022}</td>
   277      *     <td>{@code 0x0.0000000000001p-1022}</td>
   278      * </tbody>
   278      * </tbody>
   279      * </table>
   279      * </table>
   280      * @param   d   the {@code double} to be converted.
   280      * @param   d   the {@code double} to be converted.
   281      * @return a hex string representation of the argument.
   281      * @return a hex string representation of the argument.