nv += 0.5; uv = (UV)nv; if (uv & 1 && uv == nv) uv--; /* Round to even */
(There are paths I didn't take the time to understand, so maybe it doesn't always get to this function.)
In reply to Re^2: sprintf rounding convention
by ikegami
in thread sprintf rounding convention
by jagaranga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |