Here is the code to round positive and negative numbers (at least seems to work :).
It uses only the contents of the unit 1.
x=-9999.5
y=str(x).find("-")
result = str(x - .50-y)
dot = result.find(".")
final_result = result[:dot]
print final_result
asked
29 Feb '12, 19:21
Cesar Nicoleit
99●2●6
accept rate:
0%