We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f2e41c commit 74dac97Copy full SHA for 74dac97
src/js/ripple/amount.js
@@ -1,4 +1,4 @@
1
- 'use strict';
+'use strict';
2
3
// Represent Ripple amounts and currencies.
4
// - Numbers in hex are big-endian.
@@ -156,6 +156,10 @@ Amount.prototype.multiply = function(multiplicand) {
156
return this._copy(this._value.times(multiplyBy));
157
};
158
159
+Amount.prototype.scale = function(scaleFactor) {
160
+ return this._copy(this._value.times(scaleFactor));
161
+};
162
+
163
Amount.prototype.divide = function(divisor) {
164
var divisorAmount = Amount.from_json(divisor);
165
if (!this.is_valid()) {
0 commit comments