@fakerjs/float
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Float

Float package provides functionality to generate a fake float value.

Version node-current License

Install

$ npm install --save @fakerjs/float

Usage

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) Copyright (c) Sergey Romanenko

Package Sidebar

Install

npm i @fakerjs/float

Weekly Downloads

2,010

Version

2.1.1

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • awilum