Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Math.round( )Rundet auf die nächste ganze Zahl

Überblick

Math.round(x)

Argumente


x

Eine beliebige Zahl.

Rückgabewert

Der Integer, der x am nächsten kommt.

Beschreibung

Die Methode Math.round( ) rundet ihr Argument auf die nächstgelegene ganze Zahl auf oder ab. Der Wert .5 wird aufgerundet. So wird z.B. 2.5 auf 3 und −2.5 auf −2 gerundet.

  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint