I want a function $f(x)$ that rounds any $x$ to the next odd integer. For example $f(5.5)=7,f(4)=5,f(7)=7$. It does not have to be continuous nor differentiable. When I say "function", I mean an explicit definition so I can graph it on graphing software (like Desmos). For example, something like $\mathbb{ceil}(\frac{x}{2})-1$ would be accepted, if it were right.
2026-03-28 19:37:48.1774726668
Rounding Up to Next Odd Number
709 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
You may define $f(x)=\lceil \frac{x+1}{2} \rceil \cdot 2 - 1$