FIX: fixed math errors that broke search

This commit is contained in:
jason.wall 2016-05-06 19:57:10 -04:00
parent 4462dd9fcb
commit 300c08ffaa
4 changed files with 1041 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -392,7 +392,7 @@ var Words = (function () {
// convert the references back into book, chapter and verse. // convert the references back into book, chapter and verse.
for (var i = 0; i < result.length; i++) { for (var i = 0; i < result.length; i++) {
var ref = result[i]; var ref = result[i];
result[i] = (ref / 100000000) + ":" + ((ref % 100000000) / 10000) + ":" + ((ref % 100000000) % 10000); result[i] = Math.floor(ref / 100000000) + ":" + Math.floor((ref % 100000000) / 10000) + ":" + Math.floor((ref % 100000000) % 10000);
} }
return result; return result;
} }

File diff suppressed because one or more lines are too long

View File

@ -405,7 +405,7 @@ class Words {
// convert the references back into book, chapter and verse. // convert the references back into book, chapter and verse.
for (let i = 0; i < result.length; i++) { for (let i = 0; i < result.length; i++) {
let ref = result[i]; let ref = result[i];
result[i] = (ref / 100000000) + ":" + ((ref % 100000000) / 10000) + ":" + ((ref % 100000000) % 10000); result[i] = Math.floor(ref / 100000000) + ":" + Math.floor((ref % 100000000) / 10000) + ":" + Math.floor((ref % 100000000) % 10000);
} }
return result; return result;