Formatted print : Output Format : Development PYTHON examples


PYTHON examples » Development » Output Format »

 

Formatted print


Formatted print: float


print '%.2f'%(1/3.0)                          # results in: '0.33'
print '%s'%(1/3.0)                            # results in: '0.333333333333'

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Output Format