If f(x)=[[x]]−[x−1] then which of the following options is CORRECT, (where [.] represents the greatest integer function.)