answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you move the decimal point without rounding in python?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is expressed to two decimal places?

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


Convert 511 to a decimal to the nearest hundredth?

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.


What can a decrease decimal tool do in excel?

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


Word denoting the dropping of numbers behind decimal point?

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


What does rounding to the nearest dime mean?

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


What is 6050.287 rounded to the nearest ten Rounding decimals?

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.


Is a whole number is a number without a fraction or a decimal point?

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


In rounding numbers to the nearest whole number would 49.85 be rounded to 50 or 51?

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


What is 310 divided by 3?

103.3333


What is 0.986 to 2 decimal places?

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


How do you determine number of decimals in the product of two numbers?

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.


How does a number with a decimal point different from a number without one?

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.