fix formatBigNumber

This commit is contained in:
ckcz123 2020-05-24 20:29:01 +08:00
parent 404795de71
commit c0d230b6bd
2 changed files with 2 additions and 2 deletions

View File

@ -2505,7 +2505,7 @@ ui.prototype._drawEquipbox_drawStatusChanged = function (info, y, equip, equipTy
var nowValue = core.getRealStatus(name);
// 查询新值
var newValue = (core.getStatus(name) + (compare.value[name] || 0))
* (core.getBuff(name) + (compare.percentage[name] || 0) / 100);
* ((core.getBuff(name) * 100 + (compare.percentage[name] || 0)) / 100);
if (nowValue == newValue) continue;
var text = this._drawEquipbox_getStatusName(name);
this._drawEquipbox_drawStatusChanged_draw(text + " ", '#CCCCCC', obj);

View File

@ -401,7 +401,7 @@ utils.prototype.formatSize = function (size) {
utils.prototype.formatBigNumber = function (x, onMap) {
x = Math.floor(parseFloat(x));
if (!core.isset(x)) return '???';
if (x > 1e24 || x < -1e24) return x;
if (x > 1e24 || x < -1e24) return x.toExponential(2);
var c = x < 0 ? "-" : "";
x = Math.abs(x);