From 82ad8cc4445ea0e7ea805560de585801d42d636f Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 12 Jan 2018 18:28:40 +0000 Subject: [PATCH] BigNumber Dish types are now converted to fixed notation instead of exponential when translated between types --- src/core/Dish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Dish.js b/src/core/Dish.js index 7a136060..f0093e81 100755 --- a/src/core/Dish.js +++ b/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;