Skip to content
New issue

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

utils: Add nickel_round function (SHUUP-2723) #555

Merged
merged 1 commit into from
Jun 20, 2016

Conversation

suutari-ai
Copy link
Contributor

Add function for rounding numbers to a specific quant, like 0.05. This may be useful e.g. for rounding prices for cash payments.

This implements the function I proposed in a comment of PR #522: https://github.com/shuup/shuup/pull/552/files#r67639992

Add function for rounding numbers to a specific quant, like 0.05.  This
may be useful e.g. for rounding prices for cash payments.

Refs SHUUP-2723
@anders-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):
http://spartacus.aintra:8080//job/shoop-ng-pull-requests/2043/
Test PASSed.

@tulimaki tulimaki merged commit aac3c57 into shuup:master Jun 20, 2016
@suutari-ai suutari-ai deleted the nickel-round branch June 21, 2016 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants