# configuration/constants/metric.constants.ts

> 10 lines of code and 10 definitions.

Tree: GovLab Stats
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/stats#file-stats-configuration-constants-metric-constants-ts
Source text: https://banes-lab.com/source/stats/configuration/constants/metric.constants.ts.txt

Listed in [configuration/constants](https://banes-lab.com/api/source/stats/configuration/constants.md), after [configuration/constants/document.constants.ts](https://banes-lab.com/source/stats/configuration/constants/document.constants.ts.md) and before [configuration/constants/package.constants.ts](https://banes-lab.com/source/stats/configuration/constants/package.constants.ts.md).

## Definitions

- `BYTE_UNITS` (lexical_declaration, line 1, exported)
- `BYTES_PER_UNIT` (lexical_declaration, line 3, exported)
- `PERCENT` (lexical_declaration, line 5, exported)
- `ONE_DECIMAL` (lexical_declaration, line 7, exported)
- `NUMBER_LOCALE` (lexical_declaration, line 9, exported)
- `TOP_LARGEST` (lexical_declaration, line 11, exported)
- `TOP_MODULES` (lexical_declaration, line 13, exported)
- `TOP_PACKAGES` (lexical_declaration, line 15, exported)
- `MEDIAN` (lexical_declaration, line 17, exported)
- `NINETIETH` (lexical_declaration, line 19, exported)

## Contained in

- [configuration/constants](https://banes-lab.com/anatomy/stats/folder-stats-configuration-constants.md)

## Source

```typescript
export const BYTE_UNITS: readonly string[] = ["B", "KB", "MB", "GB"];

export const BYTES_PER_UNIT = 1024;

export const PERCENT = 100;

export const ONE_DECIMAL = 1;

export const NUMBER_LOCALE = "en-US";

export const TOP_LARGEST = 10;

export const TOP_MODULES = 12;

export const TOP_PACKAGES = 15;

export const MEDIAN = 0.5;

export const NINETIETH = 0.9;
```
