UNPKG

@yamada-ui/rating

Version:

Yamada UI rating component

14 lines (12 loc) 341 B
"use client" // src/rating-utils.ts var getRoundedValue = (value, to) => { var _a; const rounded = Math.round(value / to) * to; const precision = ((_a = `${to}`.split(".")[1]) == null ? void 0 : _a.length) || 0; return Number(rounded.toFixed(precision)); }; export { getRoundedValue }; //# sourceMappingURL=chunk-5OU2JQG4.mjs.map