Initial commit
This commit is contained in:
4
app/utils/format.ts
Normal file
4
app/utils/format.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function formatPercentage(pct: number) {
|
||||
const prefix = pct > 0 ? "+" : "";
|
||||
return `${prefix}${pct.toFixed(2)}%`;
|
||||
}
|
||||
Reference in New Issue
Block a user