Mega Code Archive

 
Categories / Python Tutorial / Data Type
 

Convert string to decimal

import decimal  print decimal.Decimal('1.1')