works with decimal point