I'm working with python and django, and i have this problem: I have different variables storing the price of a object, all of them in a format like 350.32, 182.40, etc...
My problem is that these numbers are strings, but in my function i have to sum them to reach a total, and python won't let me do it because it can't sum strings. I've tried int(), float(), format(), and Decimal(), but they give me always a value with only one decimal number or other incorrect values. I need 2 decimal numbers and I need the possibility to sum them all. How can i do it?
PS: sorry for any english mistakes, i'm italian.
 
     
     
     
     
     
    