Skip to content

Commit

Permalink
feat: adding new methods and refactoring old methods best
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Apr 3, 2024
1 parent 2dd66ad commit 28858d4
Show file tree
Hide file tree
Showing 14 changed files with 227 additions and 86 deletions.
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion packages/java/.idea/sonarlint/issuestore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion packages/java/.idea/sonarlint/securityhotspotstore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 16 additions & 13 deletions packages/java/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions packages/java/bigDecimalEulerNumber.txt
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;
}
*/
8 changes: 8 additions & 0 deletions packages/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>RELEASE</version>
<scope>compile</scope>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit 28858d4

Please sign in to comment.