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

No SIGN function in class Math

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 5.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: rmT116609 Date: 11/18/2002


      DESCRIPTION OF THE PROBLEM :
      There is no function Math.sign() for finding the sign of its argument
      positive => +1, negative => -1, zero => 0

      CUSTOMER WORKAROUND :
      This function is not strictly needed, but it can sometimes be more useful than lots of if then else clauses.
      (Review ID: 167188)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: