We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8e82a commit f10329fCopy full SHA for f10329f
1 file changed
src/financial/interest.rs
@@ -149,7 +149,7 @@ mod tests {
149
150
// Standard cases
151
assert!(
152
- (compound_interest(10000.0, 0.05, 3.0).unwrap() - 1576.250_000_000_001_4).abs()
+ (compound_interest(10000.0, 0.05, 3.0).unwrap() - 1_576.250_000_000_001_4).abs()
153
< EPSILON
154
);
155
@@ -183,7 +183,9 @@ mod tests {
183
const EPSILON: f64 = 1e-9;
184
185
186
- assert!((apr_interest(10000.0, 0.05, 3.0).unwrap() - 1618.223_072_263_547).abs() < EPSILON);
+ assert!(
187
+ (apr_interest(10000.0, 0.05, 3.0).unwrap() - 1_618.223_072_263_547).abs() < EPSILON
188
+ );
189
190
(apr_interest(10000.0, 0.05, 1.0).unwrap() - 512.674_964_674_473_2).abs() < EPSILON
191
0 commit comments