September 28th, 2012, 03:51 PM
How to remove a comma out a thousand value
I'm creating this webapp for my cousin. He own a trunking business so he want his website to give quote base on miles. So I got almost everything on the backend working. Now I'm encounter an issue. Since to give the quote and I need to use calculation, I having issues with distance over 1,000 miles because python can calculate that. How can I remove the comma from a 1,00 value.
September 28th, 2012, 04:30 PM
I found a way
Originally Posted by amb1s1
comma ="," in result2
if comma == True:
September 28th, 2012, 04:36 PM
Once you've isolated the number:
>>> s = '1,000'
[/code] are essential for python code and Makefiles!