roundUpToNearestDollar.tsx 195 B

1234567
  1. /**
  2. * Price looks like 1099, but we want to round up to the nearest dollar
  3. * 1099 -> 1100
  4. */
  5. export function roundUpToNearestDollar(amount: number) {
  6. return Math.ceil(amount / 100) * 100;
  7. }