Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4408489

code setting MIN_VALUE and MAX_VALUE in java.lang.{Float, Double} confusing

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic

      Description

      The code that sets the MIN_VALUE and MAX_VALUE fields in java.lang.Float and java.lang.Double does not use the string literals that would result from printing out the values in question. For example, Float.MIN_VALUE is set with
      1.40129846432481707e-45f
      while printing out this value according to Java's specification only results in
      1.4e-45f. This is needlessly confusing.

        Attachments

          Activity

            People

            Assignee:
            darcy Joe Darcy
            Reporter:
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: