fix formatBigNumber
This commit is contained in:
parent
404795de71
commit
c0d230b6bd
@ -2505,7 +2505,7 @@ ui.prototype._drawEquipbox_drawStatusChanged = function (info, y, equip, equipTy
|
|||||||
var nowValue = core.getRealStatus(name);
|
var nowValue = core.getRealStatus(name);
|
||||||
// 查询新值
|
// 查询新值
|
||||||
var newValue = (core.getStatus(name) + (compare.value[name] || 0))
|
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;
|
if (nowValue == newValue) continue;
|
||||||
var text = this._drawEquipbox_getStatusName(name);
|
var text = this._drawEquipbox_getStatusName(name);
|
||||||
this._drawEquipbox_drawStatusChanged_draw(text + " ", '#CCCCCC', obj);
|
this._drawEquipbox_drawStatusChanged_draw(text + " ", '#CCCCCC', obj);
|
||||||
|
|||||||
@ -401,7 +401,7 @@ utils.prototype.formatSize = function (size) {
|
|||||||
utils.prototype.formatBigNumber = function (x, onMap) {
|
utils.prototype.formatBigNumber = function (x, onMap) {
|
||||||
x = Math.floor(parseFloat(x));
|
x = Math.floor(parseFloat(x));
|
||||||
if (!core.isset(x)) return '???';
|
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 ? "-" : "";
|
var c = x < 0 ? "-" : "";
|
||||||
x = Math.abs(x);
|
x = Math.abs(x);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user