UNPKG

571 BTypeScriptView Raw
1/**
2 * @name monthsToQuarters
3 * @category Conversion Helpers
4 * @summary Convert number of months to quarters.
5 *
6 * @description
7 * Convert a number of months to a full number of quarters.
8 *
9 * @param months - The number of months to be converted.
10 *
11 * @returns The number of months converted in quarters
12 *
13 * @example
14 * // Convert 6 months to quarters:
15 * const result = monthsToQuarters(6)
16 * //=> 2
17 *
18 * @example
19 * // It uses floor rounding:
20 * const result = monthsToQuarters(7)
21 * //=> 2
22 */
23export declare function monthsToQuarters(months: number): number;