UNPKG

@sapphire/utilities

Version:
10 lines (8 loc) 269 B
/** * Rounds a number to a specified amount of decimal places. * * @param input The number to round off * @param decimals The amount of decimals to retain */ declare function roundNumber(input: number | string, decimals?: number): number; export { roundNumber };