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>
19 lines
627 B
Text
19 lines
627 B
Text
import formatDecimal from "./formatDecimal.js";
|
|
import formatPrefixAuto from "./formatPrefixAuto.js";
|
|
import formatRounded from "./formatRounded.js";
|
|
|
|
export default {
|
|
"%": (x, p) => (x * 100).toFixed(p),
|
|
"b": (x) => Math.round(x).toString(2),
|
|
"c": (x) => x + "",
|
|
"d": formatDecimal,
|
|
"e": (x, p) => x.toExponential(p),
|
|
"f": (x, p) => x.toFixed(p),
|
|
"g": (x, p) => x.toPrecision(p),
|
|
"o": (x) => Math.round(x).toString(8),
|
|
"p": (x, p) => formatRounded(x * 100, p),
|
|
"r": formatRounded,
|
|
"s": formatPrefixAuto,
|
|
"X": (x) => Math.round(x).toString(16).toUpperCase(),
|
|
"x": (x) => Math.round(x).toString(16)
|
|
};
|