From: Python docs round (x [, n]) Return a floating-point value x rounded to n digits after the decimal point. If n is omitted, it defaults to zero. The result is a floating point number. Values are rounded to the nearest multiple of 10 to power minus n; if two multiples are equally close, rounding is performed from 0 (so, for example, round (0.5) is 1.0 and round (-0.5) is -1.0).
Note. The behavior of round () for floats may be unexpected: for example, round (2.675, 2) gives 2.67 instead of the expected 2.68. This is not a mistake: it is the result of the fact that most decimal fractions cannot be represented exactly as floats. See Floating-Point Arithmetic: Problems and Limitations for more information.
It seems that round (293.466 .... [, 2]) will do it,
onaclov2000
source share