$\begingroup$

Most of the functions that I have seen have their discontinuities on rationals and continuities on irrationals!

I am wondering if there is any exampe of some function whose continuities are rationals? Or is other words

The set of continuities of a function $f:\mathbb{R}\to\mathbb{R}$ can be $\mathbb{Q}$?

Answers