Skip to content

Commit

Permalink
fix grammar in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsette Vona committed Mar 2, 2024
1 parent ae99f9f commit 0794686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public boolean equals(final Object obj) {
}

private BigDecimal toBigDecimal() {
//without MathContext.DECIMAL64 then a double assigned to from a string (or code literal) "3.14"
//without MathContext.DECIMAL64 then a double assigned from a string (or code literal) "3.14"
//converts to a BigDecimal=3.140000000000000124344978758017532527446746826171875
//but since a double can only represent up to 15 decimal digits when going from string -> double -> string
//the nonzero values in the smaller decimal places are just an artifact of the representation
Expand Down

0 comments on commit 0794686

Please sign in to comment.