+ 2
suppose x=10/3. It displays 3.3333. I want to display 3. How's that possible?
Function used is document.write
1 Answer
+ 14
Math.floor() rounds a number down, and Math.round() rounds it up if the decimal is .5 and over, and down if less than .5.
Function used is document.write