Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gyumeijie/fpchecker

Check whether a float number can be presented precisely in IEEE754.
https://github.com/gyumeijie/fpchecker

checker floating-point ieee754 npm-package utility

Last synced: about 2 months ago
JSON representation

Check whether a float number can be presented precisely in IEEE754.

Awesome Lists containing this project

README

        

# FPChecker
Float number Presentation Checker.

# Install
`npm install fpchecker`

# Usage
```bash
$ FPChecker number_to_be_checked
```

# Example

```bash
$ FPChecker 0.1
The actual number is: 0.1000000000000000055511151231257827021181583404541015625
false
```

```bash
$ FPChecker 0.125
The actual number is: 0.125
true
```