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