Details

      Description

      The problem is that math.round (== java.lang.Math.round) is only defined for Float and Double. If called with Int or Long arguments, they are converted to Float/Double, resulting in an loss of precision.
      Example:

      math.round(123456789)
      res17: Int = 123456792

        Attachments

          Activity

            People

            • Assignee:
              ichoran Rex Kerr
              Reporter:
              soc Simon Ochsenreither
              TracCC:
              Ismael Juma, Paul Phillips, Seth Tisue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: