Well as pundir rightly pointed it is the greatest integer less than
x = [x] + {x}
where, [x] = Greatest Integer less than
{x} = Fractional part
where, 0 < {x} < 1 ( always)
[2.9] = [2] + {0.9}
[-1.3] = [ -2] + {0.7}
PS:
we did not took -1, as then {x} would have been -0.3 which would not have been right as 0 < {x} < 1