Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/common/utils/src/Numbers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('Numbers', () => {
}).toThrow('사업자등록번호는 [0-9] 이어야 합니다.');
});

it('should round the given number and commaize', () => {
it('should floor the given number and commaize', () => {
expect(floorAndFormatNumber(123456789)).toBe('123,456,789');
expect(floorAndFormatNumber(123456.098023)).toBe('123,456');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: floorAndFormatNumber

# floorAndFormatNumber

Rounds the given number and [commaize](https://slash.page/libraries/common/utils/src/Numbers_commaizeNumber.i18n).
Floors the given number and [commaize](https://slash.page/libraries/common/utils/src/Numbers_commaizeNumber.i18n).

```typescript
function floorAndFormatNumber(value: number): string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: floorAndFormatNumber

# floorAndFormatNumber

주어진 숫자를 반올림하고, [commaize](https://slash.page/ko/libraries/common/utils/src/Numbers_commaizeNumber.i18n) 합니다.
주어진 숫자를 내림하고, [commaize](https://slash.page/ko/libraries/common/utils/src/Numbers_commaizeNumber.i18n) 합니다.

```typescript
function floorAndFormatNumber(value: number): string;
Expand Down