UNPKG

@js-draw/math

Version:
14 lines (13 loc) 369 B
/** * Converts `num` to a string, removing trailing digits that were likely caused by * precision errors. * * @example * ```ts,runnable,console * import { toRoundedString } from '@js-draw/math'; * * console.log('Rounded: ', toRoundedString(1.000000011)); * ``` */ export declare const toRoundedString: (num: number) => string; export default toRoundedString;