update exponent to be 3 instead of 5
This commit is contained in:
parent
76f23d58b8
commit
b26c19e2dc
1 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ class Amount {
|
|||
*/
|
||||
|
||||
toMilli(num) {
|
||||
return Amount.encode(this.value, 5, num);
|
||||
return Amount.encode(this.value, 3, num);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -180,7 +180,7 @@ class Amount {
|
|||
*/
|
||||
|
||||
fromMilli(value) {
|
||||
this.value = Amount.decode(value, 5);
|
||||
this.value = Amount.decode(value, 3);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue