implemented decimal point control