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

Problem coercing 7/3 to double

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-5
    • None
    • None

    Description

      1> println( Math.sin(7/3) )
      2> go
      No such method: sin for class: java.lang.Math with arguments: [2.3333333333]

      1> println( Math.sin(2.3333333333) )
      2> go
      0.7230858817613498

      Attachments

        1. GroovyBDtoDoubleCoerce.patch
          6 kB
          Brian Larson
        2. method_not_found.patch
          3 kB
          Brian Larson

        Issue Links

          Activity

            People

              bl7385 Brian Larson
              rodcope Rod Cope
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: