UNPKG

@melonproject/token-math

Version:

A small helper library to do precision safe calculations

8 lines (7 loc) 284 B
import QuantityInterface from "../quantity/QuantityInterface"; import PriceInterface from "../price/PriceInterface"; export declare type ToFixed = { (value: QuantityInterface | PriceInterface, decimals?: number): string; }; declare const toFixed: ToFixed; export default toFixed;