This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Commit 1565bb8 1 parent 31cd221 commit 1565bb8 Copy full SHA for 1565bb8
File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 21.1.0]
11
+
12
+ ### Removed
13
+
14
+ - Some dead code has been deleted.
15
+
10
16
## [ 20.0.0]
11
17
12
18
### Changed
Original file line number Diff line number Diff line change 1
1
import { Rational } from "./Rational.mjs" ;
2
2
3
- const ratOne = new Rational ( 1n , 1n ) ;
4
- const ratTen = new Rational ( 10n , 1n ) ;
5
-
6
3
function _cohort ( s : string ) : "0" | "-0" | Rational {
7
4
if ( s . match ( / ^ - / ) ) {
8
5
let c = _cohort ( s . substring ( 1 ) ) ;
@@ -46,7 +43,7 @@ function _quantum(s: string): number {
46
43
}
47
44
48
45
if ( s . match ( / [ e E ] / ) ) {
49
- let [ dec , exp ] = s . split ( / [ e E ] / ) ;
46
+ let [ _ , exp ] = s . split ( / [ e E ] / ) ;
50
47
return parseInt ( exp ) ;
51
48
}
52
49
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ function pickQuantum(
53
53
return EXPONENT_MAX ;
54
54
}
55
55
56
+ if ( d === "0" || d === "-0" ) {
57
+ return preferredQuantum ;
58
+ }
59
+
56
60
return preferredQuantum ;
57
61
}
58
62
You can’t perform that action at this time.
0 commit comments