Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jessealama committed Nov 15, 2024
1 parent 4b3cb93 commit e97fb97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Decimal.mts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Rational } from "./Rational.mjs";

const ratOne = new Rational(1n, 1n);
const ratTen = new Rational(10n, 1n);

function _cohort(s: string): "0" | "-0" | Rational {
if (s.match(/^-/)) {
let c = _cohort(s.substring(1));
Expand Down Expand Up @@ -46,7 +43,7 @@ function _quantum(s: string): number {
}

if (s.match(/[eE]/)) {
let [dec, exp] = s.split(/[eE]/);
let [_, exp] = s.split(/[eE]/);
return parseInt(exp);
}

Expand Down

0 comments on commit e97fb97

Please sign in to comment.