Suppose that a non-negative random variable $X$ has a distribution function $F(x)$, and that $Y$ is the rounding error if $X$ is rounded off to the nearest integer below. Show that $Y$ has the distribution function
$$\sum_{j=0}^\infty [F(j+y) - F(j)] $$ where $$ (0 \le y < 1)$$
My thoughts:
$Y = X- \lfloor X\rfloor$
$P(Y \le y) = P(X-\lfloor X\rfloor \le y)$
So I need to find the density function of $X-\lfloor X\rfloor$.
I first look the density function of $\lfloor X\rfloor$.
$P(\lfloor X\rfloor \le k) = P(0 \le X < k+1)$ where $k$ is an non-zero integer.
$P(0 \le X < k+1) = \int^{k+1}_0f(x)dx = $. Then I don't how should I continue;