answersLogoWhite

0


Best Answer

with parseInt.

EX:

xxx=7.25;

a=parseInt(xxx);

alert(a);

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Anonymous

Lvl 1
4y ago

fvdv

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

rnd(7.25)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you round the number 7.25 to the nearest integer in javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do round 6.48 to the nearest integer number?

Rounded to the nearest integer, 6.48 is approximately equal to 6.


What is 5.49 round decimal number to the nearest integer?

That rounds to 5.


How do you round the number 7.25 to the nearest integer?

Math.round(7.25)


What does 917 round to?

917, when rounded to the nearest whole number (integer), is 920


What does 12.011 round to?

To the nearest whole number or integer it rounds to 12


What is 11.90 round to the nearest integer?

11.90 rounded to the nearest integer is 12


What is 7.09 round to the nearest integer?

7.09 rounded to the nearest integer is 7.


What is 0.1 as an integer?

It is not an integer, nor can it ever be an integer. It can, however, be rounded to the nearest integer, in which case 0.1 will round to 0 to the nearest integer.


What is the smallest number you can round of to 900?

It depends on whether you are rounding to the nearest integer, nearest ten, nearest 50, nearest 100 or something else.


How do you round 69.65 to the nearest integer?

An integer is a whole number. To round you take the number to the right, and if it is 1-4 you round all the numbers to the right of the whole numbers and delete them. If the number is 5-9 you round up. In this case the number beside the integer is 6, which rounds up. 69.65 rounds up to 70.


How do you round decimals to the nearest inch?

A decimal is a number, while an inch is a unit of length. The two are not directly related, and this question cannot be answered as such. If the decimal number were inches, however, it would be sufficient to round to the nearest integer. If, for instance, they were feet, it would be best to multiply by 12, round to the nearest integer, and then divide by 12.


How do you round number 72 to the nearest 1000 place?

Since 72 is an integer, it is already rounded to the nearest fractional part.