Skip to content
Prev 385779 / 398503 Next

jitter-bug? problematic behaviour of the jitter function

On 23/09/2020 4:03 p.m., Rui Barradas wrote:
If there had been rounding in their computation, you might see a 
difference like 1e-15.  You wouldn't want to use that for the scale of 
jittering, so some rounding is needed.

I think the documentation for the function is poor, but the intention 
was probably to use the function in graphics (as the references did), 
and in that case, any values too close together should be treated as 
equal and jittering should separate them.  The particular computation 
used says that if the range is in [1, 10), values equal to 3 decimal 
places will be too close and need separation.

So I don't think this is a bug, but it might be a valid wishlist item: 
document what "apart from fuzz" means, and perhaps allow it to be 
controlled by the user.

Duncan Murdoch



  The function below prints the digits argument and