Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-float

yashprit39MIT1.0.0

Check if a value is a Float or not

is-float, float, floating, decimal, numbers, npm, javascript

readme

is-Float NPM version Build Status

check number is Float or not

Install

$ npm install --save is-float

Usage

Node.js

var isFloat = require('is-float'); //npm install isFloat

isFloat(2.5);
//=> true

Browser

  isFloat(2.5);

command line

$ npm install --global is-float
$ is-float --v 2.5

#result => true

Run Test

npm test

Contribute or Report Issue

For bugs and feature requests, please create an issue.

License

MIT © Yashprit