2 7/8 is not an integer value, so cannot be expressed as an integer.
It can be rounded to the nearest integer, 3.