소스 검색

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;