answersLogoWhite

0

with parseInt.

EX:

xxx=7.25;

a=parseInt(xxx);

alert(a);

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

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 the nearest integer mean?

The nearest integer refers to the whole number that is closest to a given number on the number line. When determining the nearest integer, you round the given number to the whole number that is closest to it. For example, if the given number is 3.6, the nearest integer would be 4 because it is closer to 3.6 than 3.


What is 7.09 round to the nearest integer?

7.09 rounded to the nearest integer is 7.


What is 11.90 round to the nearest integer?

11.90 rounded to the nearest integer is 12


What does 12.011 round to?

To the nearest whole number or integer it rounds to 12


How do you round 16.66 to the nearest integer?

Well, isn't that a happy little question! To round 16.66 to the nearest whole number, we simply look at the decimal part. Since the decimal part is .66, which is more than halfway to 1, we round up to the next whole number. So, 16.66 rounded to the nearest integer is 17.


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.