fix the way decimal places are detected to account for when first number is .0