in reply to •Re: counter-intuitive sprintf behaviour
in thread counter-intuitive sprintf behaviour

Rounding of a value that is exactly halfway between two whole numbers will always go to the nearest even number.
Only when the radix/2 is odd (e.g. base 2 or base 10)
When the radix is a multiple of 4, rounding to the nearest odd number is preferred.
  • Comment on Re: •Re: counter-intuitive sprintf behaviour