I have a floating-point number, say 135.12345678910. I want to concatenate that value to a string but only want 135.123456789. With print, I can easily do this by doing something like:
print "%.9f" % numvar
with numvar being my original number. Is there an easy way to do this?