-
-
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.
feat: adding new methods and refactoring old methods best
- Loading branch information
1 parent
2dd66ad
commit 28858d4
Showing
14 changed files
with
227 additions
and
86 deletions.
There are no files selected for viewing
Empty file.
24 changes: 10 additions & 14 deletions
24
packages/java/.idea/sonarlint/issuestore/c/3/c3ea51712852783ce4ce42ff276ad9325d6555ff
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/java/.idea/sonarlint/issuestore/e/5/e5bccf7dd9647f79fcfde37b16d7f4fe1b65a1dd
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
/* | ||
// 35701 exaggerated method to see the number with MANY decimal places, more than 35 thousand | ||
// Just curiosity | ||
// If your computer is very good, you can increase the loop quantity, the larger it is, the more accurate it is. | ||
private static BigDecimal createEulerNumber() { | ||
BigDecimal eulerNumber = BigDecimal.ZERO; | ||
BigDecimal factorial = BigDecimal.ONE; | ||
|
||
for (int i = 0; i < 9999; i++) { | ||
eulerNumber = eulerNumber.add(BigDecimal.ONE.divide(factorial, MathContext.DECIMAL128)); | ||
factorial = factorial.multiply(BigDecimal.valueOf(i + 1)); | ||
} | ||
|
||
return eulerNumber; | ||
} | ||
*/ |
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.