Arrotondare un numero ad un multiplo in Java: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 May 2010

  • curprev 17:3717:37, 19 May 2010 Gabriele.vivinetto talk contribs m 436 bytes +436 New page: x = 475; int m = (x/10)+1; int rounded = m*10 Divide the number by 10 to get the number of tens, we only want the integer part. We add 1 to make up for the fractional bit then multip...