@@ -1420,7 +1420,7 @@ function clone(configObject) {
1420
1420
n = xc [ ni = 0 ] ;
1421
1421
1422
1422
// Get the rounding digit at index j of n.
1423
- rd = n / pows10 [ d - j - 1 ] % 10 | 0 ;
1423
+ rd = mathfloor ( n / pows10 [ d - j - 1 ] % 10 ) ;
1424
1424
} else {
1425
1425
ni = mathceil ( ( i + 1 ) / LOG_BASE ) ;
1426
1426
@@ -1451,7 +1451,7 @@ function clone(configObject) {
1451
1451
j = i - LOG_BASE + d ;
1452
1452
1453
1453
// Get the rounding digit at index j of n.
1454
- rd = j < 0 ? 0 : n / pows10 [ d - j - 1 ] % 10 | 0 ;
1454
+ rd = j < 0 ? 0 : mathfloor ( n / pows10 [ d - j - 1 ] % 10 ) ;
1455
1455
}
1456
1456
}
1457
1457
@@ -2000,7 +2000,12 @@ function clone(configObject) {
2000
2000
}
2001
2001
2002
2002
// x < y? Point xc to the array of the bigger number.
2003
- if ( xLTy ) t = xc , xc = yc , yc = t , y . s = - y . s ;
2003
+ if ( xLTy ) {
2004
+ t = xc ;
2005
+ xc = yc ;
2006
+ yc = t ;
2007
+ y . s = - y . s ;
2008
+ }
2004
2009
2005
2010
b = ( j = yc . length ) - ( i = xc . length ) ;
2006
2011
@@ -2154,7 +2159,14 @@ function clone(configObject) {
2154
2159
ycL = yc . length ;
2155
2160
2156
2161
// Ensure xc points to longer array and xcL to its length.
2157
- if ( xcL < ycL ) zc = xc , xc = yc , yc = zc , i = xcL , xcL = ycL , ycL = i ;
2162
+ if ( xcL < ycL ) {
2163
+ zc = xc ;
2164
+ xc = yc ;
2165
+ yc = zc ;
2166
+ i = xcL ;
2167
+ xcL = ycL ;
2168
+ ycL = i ;
2169
+ }
2158
2170
2159
2171
// Initialise the result array with zeros.
2160
2172
for ( i = xcL + ycL , zc = [ ] ; i -- ; zc . push ( 0 ) ) ;
@@ -2275,7 +2287,12 @@ function clone(configObject) {
2275
2287
b = yc . length ;
2276
2288
2277
2289
// Point xc to the longer array, and b to the shorter length.
2278
- if ( a - b < 0 ) t = yc , yc = xc , xc = t , b = a ;
2290
+ if ( a - b < 0 ) {
2291
+ t = yc ;
2292
+ yc = xc ;
2293
+ xc = t ;
2294
+ b = a ;
2295
+ }
2279
2296
2280
2297
// Only start adding at yc.length - 1 as the further digits of xc can be ignored.
2281
2298
for ( a = 0 ; b ; ) {
@@ -2561,7 +2578,12 @@ function clone(configObject) {
2561
2578
intDigits = isNeg ? intPart . slice ( 1 ) : intPart ,
2562
2579
len = intDigits . length ;
2563
2580
2564
- if ( g2 ) i = g1 , g1 = g2 , g2 = i , len -= i ;
2581
+ if ( g2 ) {
2582
+ i = g1 ;
2583
+ g1 = g2 ;
2584
+ g2 = i ;
2585
+ len -= i ;
2586
+ }
2565
2587
2566
2588
if ( g1 > 0 && len > 0 ) {
2567
2589
i = len % g1 || g1 ;
0 commit comments