Skip to content

Commit

Permalink
Use BigDecimal in devguide
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Apr 15, 2024
1 parent 0410692 commit ecfa900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,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 ecfa900

Please sign in to comment.