UNPKG

@fruitsjs/util

Version:

Useful utilities and tools for building Fruits Eco-Blockchain applications

13 lines 465 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertNumberToNQTString = void 0; const convertNumberToNQTString = (n) => { if (n === undefined || n === null) { throw new Error('Invalid argument'); } return parseFloat(n.toString()) .toFixed(8) .replace('.', ''); }; exports.convertNumberToNQTString = convertNumberToNQTString; //# sourceMappingURL=convertNumberToNQTString.js.map