|
@@ -25,7 +25,7 @@ function DeepClone(toClone) {
|
|
* @returns {boolean} Whether the value in that number's place is non-zero
|
|
* @returns {boolean} Whether the value in that number's place is non-zero
|
|
*/
|
|
*/
|
|
function DecimalPlaceIsNonZero(input, place) {
|
|
function DecimalPlaceIsNonZero(input, place) {
|
|
- return !!Math.floor((input % (10 ** place)) / (10 ** (place - 1)));
|
|
|
|
|
|
+ return !!Math.floor((input / (10 ** place)) % 10);
|
|
}
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
module.exports = {
|