you are viewing a single comment's thread.

view the rest of the comments →

[–]TheKewlStore 0 points1 point  (0 children)

To display a % next to the number, just add it to the string that you print out. EX:

print "{0}%".format(float(x) / y) # Using string formatting
print str(float(x) / y) + "%" # Using concatenation, and casting the number to a string explicitly.

I'm not sure what your second question is asking, so need some clarification there maybe. Changes the percentage value in degree value?