IT Nursery
How can I display this: Decimal(‘40800000000.00000000000000’) as ‘4.08E+10’? I’ve tried this: >>> '%E' % Decimal('40800000000.00000000000000') '4.080000E+10' But it has those extra 0’s. 13 Answers 13
  • May 28, 2022
  • 0 Comments
I need to create a String with format which can convert Int, Int64, Double, etc types into String. Using Objective-C, I can do it via below way: NSString *str...
  • May 25, 2022
  • 0 Comments