On 25/03/2008, elis aeris <[EMAIL PROTECTED]> wrote: > > what if i want it only to 2nd decimal? > > what if i want to cut off everything behind decimal? >
In: print "%.2f" % (0.999999) Out: 0.99 http://docs.python.org/lib/typesseq-strings.html -- Michael Connors
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor