I am currently trying to understand the proof that $[-x] = -[x]-1$ if $x$ is not an integer (solutions for $b$.)
where $[x]$ is the floor function.
Can somebody explain me how he went from $$-n-1 < -x < n$$ to $$[-x] = -n - 1 = -[x]-1$$ in the solutions for $b$.

Since $-n-1<-x<-n$, the number $-n-1$ is the greatest integer less or equal $-x$ (it is less than $-x$ but the next integer, namely $(-n-1)+1=-n$ is greater).
Therefore $[-x]=-n-1$. Since $[x]=n$, we get $[-x]=-n-1=-[x]-1$.