• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Core Syntax > Math.round()

Math.round()

JavaScript 1.0+, ECMAScript 1.0+, JScript 1.0+ Nav2+, NES2+, IE3+, Opera3+ Syntax

							math.round(num)
						

Description

The round() method of the Math object is used to round a number to its nearest integer value. If the fractional portion of the number is .5 or greater, the result is rounded to the next highest integer. If the fractional portion of number is less than .5, the result is rounded to the next lowest integer.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint