adminFront/src/utils/formatDiscountFactor.ts

4 lines
112 B
TypeScript
Raw Normal View History

export function formatDiscountFactor(factor: number): string {
2024-05-21 07:41:31 +00:00
return `${((1 - factor) * 100).toFixed(1)}%`;
}