Best Answer

float("0.%u" % string(float_num).replace(".",""))

Q: How do you move the decimal point without rounding in python?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

It is rounding a decimal representation of a number so that there are two digits after the decimal point.

Yes a whole number is a number without a fraction or a decimal point.

a number with a decimal point is a a fraction, a part of the whole goes behind the decimal. where as one with out a decimal point is just a whole number.

If it is $217.85, then the answer would be 21785c or $217.85 (it is already to the nearest cent) If it is 217.85c, then the answer would be 217c or $2.17 (rounding off the digit after the decimal point, 5 or above means rounding up, 4 or below means rounding down)

A decimal is a value, a decimal point separates the whole number from the fraction.EG 12.34 is a decimal, the point is the dot in the middle...a decimal is a group of number combined to make a number problem and a decimal point divides it so you wont get confusedEX: candy bar $ 1.50 without the decimal point $150

Related questions

It is rounding a decimal representation of a number so that there are two digits after the decimal point.

Leave it exactly as it is. The answer is 511 - without a decimal point or any other frills. Since it is already an integer, rounding to the nearest hundredth makes no difference.

It reduces the number of digits after the decimal point in the display, rounding the number as appropriate.

You may be thinking of rounding (right of the decimal) or zero suppression (left of the decimal).

No rounding is necessary - the number is already rounded to one decimal place.

Round to the nearest tenth, the first decimal place to the right of the decimal point.

If you are rounding to the nearest tenth (the first decimal position), it is 6050.3, since the 8 in the hundredths position would cause the 2 to round up to 3. If you are rounding to the nearest tens (not a decimal, but the second position to the left of the decimal point), it is 6050. If you are rounding to the nearest 10 decimal places, it is 6050.2870000000.

Yes a whole number is a number without a fraction or a decimal point.

It would be 50. In rounding up, we add one and truncate the digits after the decimal point. In rounding down, we just truncate the digits. http://en.wikipedia.org/wiki/Rounding#Common_method

In this question you need to round 0.986 to two decimal points. This means when you are finished you need two digits to the right of the decimal point. Because there is a third decimal point you need to round. When rounding if the digit tot he right of the place you are rounding is 5 or greater you would round up, otherwise you round down. In this case you are rounding the '8', so look to the right and you see a '6'. Using the previous rounding process make the check: Is 6 >= 5? Yes it is! Therefore you would round the '8' up to a '9'. This results in your answer to be 0.99

103.3333

Consider the numbers A and B where A has m digits after the decimal point and B has n digits.Then find the multiple A'*B' where A' is A without its decimal point, and B' is B without its decimal point.In that answer insert the decimal point so that there are (m+n) digits after the decimal point.