Return the whole-number part of the value, throwing away anything after the decimal point. 9.99 becomes 9, and -2.7 becomes -2. This is what a cast does — it does not round.
int wholePart(double value)
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.