first commit
This commit is contained in:
9
src/app/common/number-utils.ts
Normal file
9
src/app/common/number-utils.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Formats a number without trailing zeros.
|
||||
*
|
||||
* @param num the number to format
|
||||
* @returns the formatted number
|
||||
*/
|
||||
export function formatNumberWithCommas(num: number) {
|
||||
return num.toLocaleString();
|
||||
}
|
Reference in New Issue
Block a user