fixed negative result

since to_f doesn't work with numbers with commas.