Rocky_Mountain_Vending/.pnpm-store/v10/files/c7/fd4c0d56f404705457d6bcc4d6ff91781658cc454c08fb35f8e6a298dee5079006e5a38dd67781e4652132d3cd3ed8fb8e7b4db533f3dc58a910d0871e5989
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

30 lines
717 B
Text

"use strict";
exports.quartersToYears = quartersToYears;
var _index = require("./constants.cjs");
/**
* @name quartersToYears
* @category Conversion Helpers
* @summary Convert number of quarters to years.
*
* @description
* Convert a number of quarters to a full number of years.
*
* @param quarters - The number of quarters to be converted
*
* @returns The number of quarters converted in years
*
* @example
* // Convert 8 quarters to years
* const result = quartersToYears(8)
* //=> 2
*
* @example
* // It uses floor rounding:
* const result = quartersToYears(11)
* //=> 2
*/
function quartersToYears(quarters) {
const years = quarters / _index.quartersInYear;
return Math.trunc(years);
}