Rocky_Mountain_Vending/.pnpm-store/v10/files/b8/72832aea05fa9efef8958a002d969e54f0f859e0b829e4351513a00176322df82a4d8003e704b283afb123f6daf2106efc6edec50377c768a86181ed47624a
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

27 lines
656 B
Text

import Decimal from 'decimal.js';
import { ToPrimitive } from './262';
export function ToIntlMathematicalValue(input) {
var primValue = ToPrimitive(input, 'number');
if (typeof primValue === 'bigint') {
return new Decimal(primValue);
}
// IMPL
if (primValue === undefined) {
return new Decimal(NaN);
}
if (primValue === true) {
return new Decimal(1);
}
if (primValue === false) {
return new Decimal(0);
}
if (primValue === null) {
return new Decimal(0);
}
try {
return new Decimal(primValue);
}
catch (e) {
return new Decimal(NaN);
}
}