Fixes bug: If no decimal point is present then the entire number is treated as the decimal part instead of the integer part