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: about 1 month ago
JSON representation
Float package provides functionality to generate a fake float value.
- Host: GitHub
- URL: https://github.com/faker-javascript/float
- Owner: faker-javascript
- License: mit
- Created: 2022-01-08T18:21:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-13T05:56:59.000Z (over 4 years ago)
- Last Synced: 2025-07-06T18:47:22.843Z (12 months ago)
- Topics: fake-data, fake-data-generator, faker, faker-generator, fakerjs, javascript, js, typescript
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Float
Float package provides functionality to generate a fake float value.
## 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)