Skip to content

Commit 9aa69cc

Browse files
♻️ refactor(MAX_BASE): Reference MAX_NUMBER explicitly.
1 parent 3c5efec commit 9aa69cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_limits.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
export const MAX_NUMBER = Math.pow(2,53) - 1 ;
33
export const MIN_NUMBER = -Math.pow(2,53) ;
44
export const MIN_BASE = 2 ;
5-
export const MAX_BASE = Math.ceil(Math.sqrt(Math.pow(2,53))) ;
5+
export const MAX_BASE = Math.ceil(Math.sqrt(MAX_NUMBER+1)) | 0;

0 commit comments

Comments
 (0)