Skip to content

Float package provides functionality to generate a fake float value.

License

Notifications You must be signed in to change notification settings

faker-javascript/float

Repository files navigation

Float

Float package provides functionality to generate a fake float value.

Versionnode-currentLicense

Install

npm

npm install @fakerjs/float --save-dev 

yarn

yarn add @fakerjs/float -D 

Usage

importfloatfrom'@fakerjs/float';float();//=> -120920142888.5024float({min: 0,max: 10});//=> 7.6913float({min: 0,max: 10,fixed: 6);//=> 7.691312

Tests

Run tests

npm run test 

License

The MIT License (MIT) Copyright (c) Sergey Romanenko

About

Float package provides functionality to generate a fake float value.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published