Skip to content

Commit

Permalink
Fixing decVar list
Browse files Browse the repository at this point in the history
  • Loading branch information
fusion809 committed Nov 18, 2020
1 parent f515584 commit d56c852
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions showSolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ function printDecVarValues(b, x, xB, mn, isAlt) {
}

// Punctuation
if (i < mn - 2) {
tempStr += ", ";
} else if (isAlt && i < mn -1) {
if (isAlt && i == mn - 2) {
tempStr += " and ";
} else if (!isAlt || isAlt && i < mn - 2) {
tempStr += ", ";
} else if (isAlt && i == mn - 1) {
tempStr += ". ";
}
}
}
Expand Down Expand Up @@ -224,8 +226,6 @@ function printObjFn(objVarName, sign, zmn, isAlt) {
tempStr += " ";
tempStr += katex.renderToString(" = ") + " ";
tempStr += decimalToFrac(sign*zmn) + ". ";
} else {
tempStr += ". ";
}
}

Expand Down

0 comments on commit d56c852

Please sign in to comment.