Fixed handling of decimal point