>
> I'm not an expert, but I never encountered rounding floating point numbers
> in bases different from 2 and 10.
>

I agree that this is probably not very common. More a possibility if one
would supply a base argument to around.

However, it is worth noting that Matlab has the quant function,
https://www.mathworks.com/help/deeplearning/ref/quant.html which basically
supports arbitrary bases (as a special case of an even more general
approach). So there may be other use cases (although the example basically
just implements around(x, 1)).

BR Oscar Gustafsson
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to