UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

13 lines 753 B
/** * This was created to pass in screen ratios like 3440 / 1440 and get rounded value for comparison. * You have to adjust the decimals depending on if it's landscape or portrait to be able to do a comparison. * That way you can group screen sizes in buckets like 16 x 9 when the actual ratio is fractionally different * @param num */ export declare function roundRatio(num: number): number; export declare function round5decimals(num: number): number; export declare function round4decimals(num: number): number; export declare function round3decimals(num: number): number; export declare function round2decimals(num: number): number; export declare function round1decimals(num: number): number; //# sourceMappingURL=rounding.d.ts.map