diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-26 10:33:33 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-26 10:33:48 -0400 |
| commit | 7ff1c8087a1075535d370c22bacc55274b58c1f2 (patch) | |
| tree | d7ca1b187c221a659ceed148ab750d0cc171d76a /docs | |
| parent | 2fdef5a147452ca75b899eeed3b81b57d7da5f1f (diff) | |
Remove distinction between 0 and -0 in division
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index b643e2a8..c21d800c 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -208,7 +208,7 @@ let times = (x,w) => { throw Error("×: Arguments must be numbers"); } let divide = (x,w) => { - if (isnum(x)&&(!has(w)||isnum(w))) return (has(w)?w:1)/x; + if (isnum(x)&&(!has(w)||isnum(w))) return (has(w)?w:1)/(x===0?0:x); throw Error("÷: Arguments must be numbers"); } let power = (x,w) => { |
