Skip to content

Commit d98503a

Browse files
committed
Display total with TeX format
1 parent 588c5fa commit d98503a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chalkbox/java/functionality/Functionality.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public Collection run(Collection submission) {
304304
}
305305
double scaled = Math.ceil((total / (float) 100) * options.weighting);
306306

307-
results += "\n(" + total + "/100) * " + options.weighting + " =" + scaled;
307+
results += "\n$$\n\\dfrac{" + total + "}{100} \\times " + options.weighting + " = " + scaled + "\n$$";
308308

309309
Data data = new Data();
310310
data.set("name", "Functionality Tests");

0 commit comments

Comments
 (0)