Fixed issues about decimals and negatives.