possible to round number and convert to string?
Dr. Phillip M. Feldman
pfeldman at verizon.net
Sat Aug 1 02:42:57 CEST 2009
This was very close to what I wanted. Thanks! My final code looks like
"""Convert x (int or float) to a string with f digits to right of
the decimal point. f may be zero or negative, in which case the decimal
point is suppressed."""
# Delete decimal point:
if i>0: s= s[:i]
View this message in context: http://www.nabble.com/possible-to-round-number-and-convert-to-string--tp24763821p24764948.html
Sent from the Python - python-list mailing list archive at Nabble.com.
More information about the Python-list