We consider some simple periodic functions on the field of rational numbers with values in $\mathbb{Q}/\mathbb{Z}$ which are defined in terms of lowest-term-expression of rational numbers. We prove the density of graphs of these functions by constructing explicitly points on the graphs close to a given point using continued fractions.