Want this question answered?
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)
There is no universal "better". Rounding off is a trade-off between reducing the accuracy and simplifying calculations. Also, if there are other numbers in an addition that are rounded to the nearest hundred, there is no point in rounding your number to the nearest ten.
Just use the first two parts of the decimal after the decimal point. e
float("0.%u" % string(float_num).replace(".",""))
It is rounding a decimal representation of a number so that there are two digits after the 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
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)
There is no universal "better". Rounding off is a trade-off between reducing the accuracy and simplifying calculations. Also, if there are other numbers in an addition that are rounded to the nearest hundred, there is no point in rounding your number to the nearest ten.
Just use the first two parts of the decimal after the decimal point. e
float("0.%u" % string(float_num).replace(".",""))
In rounding, the five after the point tells you to round up one. 157.5 rounded is 158.
It reduces the number of digits after the decimal point in the display, rounding the number as appropriate.
It is rounding a decimal representation of a number so that there are two digits after 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.
At one point Casio made quite a few different cameras. Currently, in the US, they only sell camera accessories and no longer carry any new digital cameras. You can, however, find a few older models on Amazon.
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.