Fixed integer division error, convert numbers to floating point values before mean division