is there a way to do this? google calculator can handle a float%float calculation, so can c?
if you have a better way to round to the nearest half than to do the following, please tell.
n -n%1 + round(n%1)
round is a function that just rounds to the nearest integer
if you have a better way to round to the nearest half than to do the following, please tell.
n -n%1 + round(n%1)
round is a function that just rounds to the nearest integer