An open API service indexing awesome lists of open source software.

https://github.com/faker-javascript/float

Float package provides functionality to generate a fake float value.
https://github.com/faker-javascript/float

fake-data fake-data-generator faker faker-generator fakerjs javascript js typescript

Last synced: 3 months ago
JSON representation

Float package provides functionality to generate a fake float value.

Awesome Lists containing this project

README

        

Float



Float package provides functionality to generate a fake float value.


Version node-current License

## Install

npm
```
npm install @fakerjs/float --save-dev
```

yarn
```
yarn add @fakerjs/float -D
```

## Usage

```js
import float from '@fakerjs/float';

float();
//=> -120920142888.5024

float({min: 0, max: 10});
//=> 7.6913

float({min: 0, max: 10, fixed: 6);
//=> 7.691312
```

## Tests

Run tests

```
npm run test
```

## License
[The MIT License (MIT)](https://github.com/faker-javascript/float/blob/master/LICENSE)
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)