how to make a variable change from the text "1m" into "1000000" in python

Posted by Pevo on Stack Overflow See other posts from Stack Overflow or by Pevo
Published on 2010-03-15T19:26:19Z Indexed on 2010/03/15 19:29 UTC
Read the original article Hit count: 125

Filed under:
|
|

I have variables with values like 1.7m 1.8k and 1.2b how can I convert them to a real number value for example

1.7m = 1700000
1.8k = 1800
1.2b = 1200000000

© Stack Overflow or respective owner

Related posts about python

Related posts about convert