# @indlekofer/format_numeric

> format numeric

Latest version **1.0.2** (published 2021-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @indlekofer/format_numeric
pnpm add @indlekofer/format_numeric
yarn add @indlekofer/format_numeric
bun add @indlekofer/format_numeric
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-04-20 |
| First published | 2019-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Indlekofer |
| Maintainers | daind |

## Links

- npm: https://www.npmjs.com/package/@indlekofer/format_numeric
- Repository: https://github.com/indlekofer/format_numeric
- Homepage: https://github.com/indlekofer/format_numeric#readme
- Issues: https://github.com/indlekofer/format_numeric/issues
- npm.io page: https://npm.io/package/@indlekofer/format_numeric

## Recent versions

- 1.0.2 (latest) — 2021-04-20
- 1.0.1 — 2019-04-08
- 1.0.0 — 2019-04-06

## README

# @indlekofer/format_numeric

## Usage

```js
import format from '@indlekofer/format_numeric';

console.log(format(23456.78, 4, ",", ".")); //=> "23.456,7800"
```

## Params
  format(float|string number, int decimals = 2, string decPoint = ",", string thousandsSep = ".", round = true)

  **number**: *number* input number  
  **decimals**: *number* decimals amount (default true)  
  **decPoint**: *string* decimal point (default ,)  
  **thousandsSep**: *number* thousands separator (default .)  
  **round**: *bool* do round ?(default: true)  

## Return

  *string* formatted number  

## Exports

### pad

  **value**: *number*  
  **length**: *number* (default 2)  

### Return

  *string*

---
_Source: https://npm.io/package/@indlekofer/format_numeric · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
