BigDecimal.longValue second sentence wording unclear

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.2.0
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: