I've run into a strange phenomenon:
>>>round(15500,-3)
16000
>>>round(14500,-3)
14000
>>>round(13500,-3)
14000
Setting the ndigits
argument to -3 should theoretically round to the nearest 1000. When at an ambiguous position like in the 500s, I would expect the default behavior to be consistent: either always rounding to the larger thousand or always to the smaller one, but it seems otherwise.