/**
 * Display formatting shared by every page that renders a qualification score.
 *
 * One formatter, because the same 6250 was reading as `63%` on the Motion home
 * and `62.5%` on the engagement that page links to — and the difference lands
 * exactly where a band boundary does. It lived in `QualificationScorer` until
 * three pages that do not otherwise touch the scorer were importing from it.
 */

/** Basis points as a percentage. Rounded, never truncated — AGENTS.md §4. */
export function percent(basisPoints: number): string {
  return `${(Math.round(basisPoints / 10) / 10).toFixed(1)}%`;
}
