Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript
246 B
Raw Blame
// TODO: someday support all ISO currencies and locale-aware formatting.
function formatPrice(cents) {
  const dollars = Math.floor(cents / 100);
  const rem = cents % 100;
  return '$' + dollars + '.' + rem;
}

module.exports = { formatPrice };