Skip to main content

Command Palette

Search for a command to run...

#consol.log("Day-1");JavaScript Function ,Math.round()

JavaScript Math.round

Updated
1 min readView as Markdown
#consol.log("Day-1");JavaScript Function ,Math.round()
N

student, Coder, Programmer

Math.round() is a static JavaScript Function that is accessed by Math class and The function rounds the number to its nearest integer with two decimal places. if decimal part >0.5. it's rounded to a higher absolute value or f decimal part < 0.5. it's rounded to lower absolute value

#snippet

Math.round(5.5)

//output - 6
58 views

Daily New Things

Part 2 of 2

Here you find daily updates and news in short form, in simple language. It daily blog for some programing language updates. I don't consider this to be my original source.

Start from the beginning

#consol.log("Day-2");JavaScript Function ,Math.trunc()

Math.trunc()