
September 28th, 2012, 04:30 PM
|
|
Registered User
|
|
Join Date: Aug 2012
Posts: 25
Time spent in forums: 4 h 25 m 28 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by amb1s1 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. |
I found a way
Code:
comma ="," in result2
if comma == True:
result2=result2.replace(",", "")
result2=float(result2)
else:
result2=float(result2)
|