Greatest integer of a number gives the nearest integer on the left of it on the number line. If x is an integer it gives the same value x.
⇒ [2.3] = 2
[0.23] = 0
[-5.1] = -6
[6] = 6
⇒ sum = 2 + 0 + (-6) + 6 = 2