Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-291

add new negate() methods to Number

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-JSR-1
    • None
    • None

    Description

      So that we can do things like

      n = 123
      y = -n

      which means

      y = n.negate()

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: