Is there any way to round numbers in C?
I do not want to use ceil and floor. Is there any other alternative?
I came across this code snippet when I Googled f
A general solution is to use rint() and set the FLT_ROUNDS rounding mode as appropriate.