Here is the code to round positive and negative numbers (at least seems to work :).
It uses only the contents of the unit 1.
result = str(x - .50-y)
dot = result.find(".")
final_result = result[:dot]
Nicely done. Thanks for sharing.
answered 29 Feb '12, 19:55