Using double type for calculation instead float.