Skip to content

Commit 21541d8

Browse files
siriakCopilot
andauthored
Update src/financial/compound_interest.rs
Co-authored-by: Copilot <[email protected]>
1 parent ec6f731 commit 21541d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/financial/compound_interest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod tests {
1717
let times_per_year = 4; // interest compounded quarterly
1818
let years = 2.0; // 2 years tenure
1919
let result = compound_interest(principal, rate, times_per_year, years);
20-
assert!((result - 1104.486).abs() < 0.001); // expected value rounded up to 3 decimal
20+
assert!((result - 1104.486).abs() < 0.001); // expected value rounded to 3 decimal
2121
// places
2222
}
2323
}

0 commit comments

Comments
 (0)