Skip to content

Commit

Permalink
Merge pull request #8 from kjvbrt/round
Browse files Browse the repository at this point in the history
Avoiding 666
  • Loading branch information
kjvbrt authored Apr 9, 2024
2 parents 1794891 + f8c9a23 commit 6bf61f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ export class InfoBox {
bottomLines.push("t = " + this.time + " ns");
bottomLines.push("m = " + this.mass + " GeV");
if (Math.abs(this.charge) < 1.0 && this.charge != 0) {
if (Math.round(this.charge * 1000) === 666) {
if (Math.round(this.charge * 1000) === 667) {
bottomLines.push("q = 2/3 e");
}
if (Math.round(this.charge * 1000) === -666) {
if (Math.round(this.charge * 1000) === -667) {
bottomLines.push("q = -2/3 e");
}
if (Math.round(this.charge * 1000) === 333) {
Expand Down

0 comments on commit 6bf61f8

Please sign in to comment.