PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-lib/dist/test/testutil
Просмотр файла: tnumber.d.ts
/**
* Multiply a decimal amount by 1e8 to convert from coins to sats
* (optionally to a bigint converting to bigint)
*
* This function really shouldn't exist, but is used by some test code. At some
* point we should fix those functions to use strings or integers only to
* represent monetary values.
*
* Throws error if resulting value is not a safe integer number
*
* @param value - decimal amount of coins
* @param amountType - desired output type
* @return value * 1e8, as amountType
*/
export declare function decimalCoinsToSats<TNumber extends number | bigint>(value: number, amountType?: 'number' | 'bigint'): TNumber;
//# sourceMappingURL=tnumber.d.ts.map
Выполнить команду
Для локальной разработки. Не используйте в интернете!