UNPKG

@parcl-finance/product-sdk

Version:

TypeScript SDK for interacting with Parcl's product APIs

10 lines 363 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPercent = void 0; const decimal_js_1 = require("decimal.js"); function getPercent(value) { value = new decimal_js_1.Decimal(value.toString()); return { value, uiValue: value.mul(100).toString() }; } exports.getPercent = getPercent; //# sourceMappingURL=percent.js.map