Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gyumeijie/fpchecker
- Owner: Gyumeijie
- Created: 2019-04-10T00:21:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T16:29:41.000Z (over 5 years ago)
- Last Synced: 2024-11-21T03:54:38.705Z (2 months ago)
- Topics: checker, floating-point, ieee754, npm-package, utility
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/fpchecker
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```