File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 782782 if ( ! ( c . length + e & 1 ) ) c += '0' ;
783783 s = Math . sqrt ( c ) ;
784784 e = ( ( e + 1 ) / 2 | 0 ) - ( e < 0 || e & 1 ) ;
785- r = new Big ( ( s == 1 / 0 ? '1e ' : ( s = s . toExponential ( ) ) . slice ( 0 , s . indexOf ( 'e' ) + 1 ) ) + e ) ;
785+ r = new Big ( ( s == 1 / 0 ? '5e ' : ( s = s . toExponential ( ) ) . slice ( 0 , s . indexOf ( 'e' ) + 1 ) ) + e ) ;
786786 } else {
787787 r = new Big ( s ) ;
788788 }
Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ P.sqrt = function () {
779779 if ( ! ( c . length + e & 1 ) ) c += '0' ;
780780 s = Math . sqrt ( c ) ;
781781 e = ( ( e + 1 ) / 2 | 0 ) - ( e < 0 || e & 1 ) ;
782- r = new Big ( ( s == 1 / 0 ? '1e ' : ( s = s . toExponential ( ) ) . slice ( 0 , s . indexOf ( 'e' ) + 1 ) ) + e ) ;
782+ r = new Big ( ( s == 1 / 0 ? '5e ' : ( s = s . toExponential ( ) ) . slice ( 0 , s . indexOf ( 'e' ) + 1 ) ) + e ) ;
783783 } else {
784784 r = new Big ( s ) ;
785785 }
You can’t perform that action at this time.
0 commit comments