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>
31 lines
831 B
Text
31 lines
831 B
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.GetUnsignedRoundingMode = GetUnsignedRoundingMode;
|
|
var negativeMapping = {
|
|
ceil: 'zero',
|
|
floor: 'infinity',
|
|
expand: 'infinity',
|
|
trunc: 'zero',
|
|
halfCeil: 'half-zero',
|
|
halfFloor: 'half-infinity',
|
|
halfExpand: 'half-infinity',
|
|
halfTrunc: 'half-zero',
|
|
halfEven: 'half-even',
|
|
};
|
|
var positiveMapping = {
|
|
ceil: 'infinity',
|
|
floor: 'zero',
|
|
expand: 'infinity',
|
|
trunc: 'zero',
|
|
halfCeil: 'half-infinity',
|
|
halfFloor: 'half-zero',
|
|
halfExpand: 'half-infinity',
|
|
halfTrunc: 'half-zero',
|
|
halfEven: 'half-even',
|
|
};
|
|
function GetUnsignedRoundingMode(roundingMode, isNegative) {
|
|
if (isNegative) {
|
|
return negativeMapping[roundingMode];
|
|
}
|
|
return positiveMapping[roundingMode];
|
|
}
|