Skip to content

Commit

Permalink
Use BigDecimal in devguide (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner authored Apr 15, 2024
1 parent 0410692 commit 16f45a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ _{ list here sources of all reused/adapted ideas, code, documentation, and third

1. CS2103T AB3 Source Code
2. https://uibakery.io/regex-library/phone-number-java - Regarding Phone Validation Java Regex
3. Java documentation for BigDecimal https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html.

--------------------------------------------------------------------------------------------------------------------

## **Setting up, getting started**
Expand Down Expand Up @@ -280,8 +282,8 @@ CCA members. An example command is ``split a/4.00 c/NUS Cycling``. Which means

1. Identify all members belonging to that CCA.
2. Count the number of members in 1., and split the amount equally.
* Note: rounding errors may occur here. So we should use `double` in Java
for higher precision and also round to nearest 2 d.p.
* Note: rounding errors may occur here. So we should use `BigDecimal` in Java
for higher precision.
3. Add the split amount to each member's "payment owed" field


Expand Down

0 comments on commit 16f45a5

Please sign in to comment.