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

Math.round fails for negative numbers

XMLWordPrintable

    • 1.0alpha2
    • sparc
    • solaris_2.4
    • Not verified

      Apparently casting to int does a truncate towards zero which is
      not the correct operation to use for rounding. Math.floor should
      be used instead.

            flar Jim Graham
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: