Added: Rounding for double datatypes when calculating if the value is odd or even.