Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Changed comb.number.round to default to new comb.number.roundHalfUp method #69

Merged
merged 1 commit into from
Jan 21, 2015

Conversation

TechnotronicOz
Copy link
Contributor

@@ -1,7 +1,7 @@
{
"name": "comb",
"description": "A framework for node",
"version": "0.3.6",
"version": "0.3.7",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update to 0.4.0 since this could potentially be a breaking change for someone

assert.equal(comb.number.roundHalfUp(3.28515151515, 10), 3.2851515152);
assert.equal(comb.number.roundHalfUp(3.28515151514, 10), 3.2851515151);
assert.equal(comb.number.roundHalfUp(3.28515151516, 10), 3.2851515152);
assert.equal(comb.number.roundHalfUp(0.985, 2), 0.99);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you have a bunch of duplicate numbers in this test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially I was testing to make sure the same value ran multiple times would produce the same result. I'll clean them up though.

doug-martin added a commit that referenced this pull request Jan 21, 2015
Changed `comb.number.round` to default to new `comb.number.roundHalfUp` method
@doug-martin doug-martin merged commit 42ede8c into C2FO:master Jan 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants