Skip to content

Commit 935868a

Browse files
committed
Added white space
1 parent c1c2465 commit 935868a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/thealgorithms/maths/MathBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ public Builder format(String format) {
330330
}
331331

332332
public Builder format(int decimalPlace) {
333-
String pattern = "."
334-
+ "#".repeat(decimalPlace);
333+
String pattern = "." + "#".repeat(decimalPlace);
335334
DecimalFormat formater = new DecimalFormat(pattern);
336335
String num = formater.format(number);
337336
number = Double.parseDouble(num);

0 commit comments

Comments
 (0)