// Prices are whole Taka integers. Formatting only — never use for calculations.
export function taka(n: number): string {
  const sign = n < 0 ? "−" : "";
  return `${sign}৳${Math.abs(Math.round(n)).toLocaleString("en-IN")}`;
}

export function percentOf(amount: number, percent: number): number {
  return Math.round((amount * percent) / 100);
}
