mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
bitwise floor ok
This commit is contained in:
parent
50f63bec5c
commit
8df4a72aaa
@ -3123,8 +3123,7 @@
|
|||||||
j = i - LOG_BASE + digits;
|
j = i - LOG_BASE + digits;
|
||||||
|
|
||||||
// Get the rounding digit at index j of w.
|
// Get the rounding digit at index j of w.
|
||||||
// Floor using Math.floor instead of | 0 as rd may be outside int range.
|
rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0;
|
||||||
rd = j < 0 ? 0 : mathfloor(w / mathpow(10, digits - j - 1) % 10);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user