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

BigDecimal.longValue second sentence wording unclear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic



      Name: dbT83986 Date: 02/25/99


      The second sentence of the method description for
      BigDecial.longValue is unclear. Tt says:

           Converts this BigDecimal to a long. Standard
           narrowing primitive conversion as defined in
           The Java Language Specification: any fractional
           part of this BigDecimal will be discarded, and
           if the resulting "BigInteger" is too big to fit
           in a long, only the low-order 64 bits are
           returned.

      It would be clearer if the part before the colon
      were a complete sentence, or at least were in the
      form of the wording for floatValue, etc.:

          ...
          Similar to the double-to-float narrowing primitive
          conversion defined in The Java Language
          Specification: if this BigDecimal....



      DSB/DFI
      (Review ID: 47489)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: