浏览代码

BigNumber Dish types are now converted to fixed notation instead of exponential when translated between types

n1474335 7 年之前
父节点
当前提交
82ad8cc444
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Dish.js

+ 1 - 1
src/core/Dish.js

@@ -173,7 +173,7 @@ Dish.prototype.translate = function(toType, notUTF8) {
             this.value = Array.prototype.slice.call(new Uint8Array(this.value));
             break;
         case Dish.BIG_NUMBER:
-            this.value = this.value instanceof BigNumber ? Utils.strToByteArray(this.value.toString()) : [];
+            this.value = this.value instanceof BigNumber ? Utils.strToByteArray(this.value.toFixed()) : [];
             break;
         default:
             break;