How can I explicitly tell python to read a decimal number using the point or the comma as a decimal separator? I don\'t know the localization settings of the PC that will ru
You can use babel to parse decimals in local formats:
>>> parse_decimal('1,099.98', locale='en_US') Decimal('1099.98') >>> parse_decimal('1.099,98', locale='de') Decimal('1099.98')