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 c1c2465 commit 935868aCopy full SHA for 935868a
src/main/java/com/thealgorithms/maths/MathBuilder.java
@@ -330,8 +330,7 @@ public Builder format(String format) {
330
}
331
332
public Builder format(int decimalPlace) {
333
- String pattern = "."
334
- + "#".repeat(decimalPlace);
+ String pattern = "." + "#".repeat(decimalPlace);
335
DecimalFormat formater = new DecimalFormat(pattern);
336
String num = formater.format(number);
337
number = Double.parseDouble(num);
0 commit comments