We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decimals
sc.round
It would be useful to be able to round to d decimals without resorting to something hard to read and error prone like:
d
sc.round(10**d * var) / 10**d
Numpy allows a decimals argument to np.round, with that the above becomes:
np.round
np.round(var, d)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be useful to be able to round to
d
decimals without resorting to something hard to read and error prone like:Numpy allows a
decimals
argument tonp.round
, with that the above becomes:The text was updated successfully, but these errors were encountered: