If f(x)=x−ex+cos2xx2,x≠0, is continuous at x=0, where [x] and {x} denotes the greatest integer and fractional part functions, respectively.