-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from fast-reflexes/1.4.2-bugfix-and-improved-ca…
…lculation-of-combinations 1.4.2
- Loading branch information
Showing
9 changed files
with
116 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.10.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
|
||
## Good to know about `Decimal` and calculations | ||
|
||
* `Decimal`'s are immutable but in some places, an input is wrapped in `Decimal(x)`. This is likely because this input | ||
can sometimes be a regular number OR has been so historically and the creation of a `Decimal` has been left. | ||
* Adjustments of `Decimal`'s via `adjustPrecisions` is an attempt to allow a certain number of decimals to the right of | ||
the comma so that, depending on the integer part, a `Decimal` can have its precision increased or decreased at | ||
different times after some processing has been done. If this results in a too big number, then the precision needed is | ||
too big and we can't carry out the calculations. This limit is set at 1000 digits (out of which 100 at most are to the | ||
right of the comma). Larger numbers than this will result in the calculations failing. | ||
* It takes longer to calculate a loop where a log operation occurs in every iteration rather than a multiplication, | ||
therefore calculating stuff in log space can be more time-consuming but has the advantage of allowing larger numbers | ||
without overflowing. | ||
|
||
## How to release | ||
|
||
* Create a new branch with the name `X.X.X-feature` | ||
* Commit and push to git | ||
* Merge in git | ||
* Pull master locally | ||
* Add tag with `git tag X.X.X` | ||
* Push the new tag with `git push origin XXX` | ||
* Add new release for tag in Github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.