I know that when $x \in \mathbb R$ then $\frac {1}{x}$ is continuous on $\mathbb {R^{\ast-}}$ and on $\mathbb {R^{\ast+}}$
Considering $f(x) = abs(\frac{1}{x})$ where $x \in \mathbb {R}$ and $f(x) \in \mathbb {R^+} \cup \infty^+ $
Is this function continuous ? I feel like adding $\infty^+$ to $\mathbb {R}$ might be sufficient.
The function is a continuous function on $\mathbb R\setminus \{0\}$.
The function is not defined on $\mathbb R$, because it is not defined on $0$.
If you add $\infty$ to $\mathbb R$, then you need to also redefine what continuity means, since continuity is defined on $\mathbb R$ (or, more generally, in topological spaces, but you still have to define the new topology...)