SyntaxFix
Write A Post
Hire A Developer
Questions
If you mean when printing, then the following should work:
print '%.3f' % number