This commit is contained in:
Felix Roos 2022-11-21 21:59:08 +01:00
parent 4c838aeaca
commit 8304993481
2 changed files with 2 additions and 1 deletions

View file

@ -74,7 +74,7 @@ const fraction = (n) => {
-> those farey sequences turn out to make pattern querying ~20 times slower! always use strings!
-> still, some optimizations could be done: .mul .div .add .sub calls still use numbers
*/
n = String(n);
// n = String(n); // this is actually faster but imprecise...
}
return Fraction(n);
};