We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1725e66 commit e76f17fCopy full SHA for e76f17f
src/main/java/com/thealgorithms/maths/MathBuilder.java
@@ -331,7 +331,7 @@ public Builder format(String format) {
331
332
public Builder format(int decimalPlace) {
333
String pattern = "."
334
- + "#".repeat(decimalPlace);
+ + "#".repeat(decimalPlace);
335
DecimalFormat formater = new DecimalFormat(pattern);
336
String num = formater.format(number);
337
number = Double.parseDouble(num);
0 commit comments