Skip to content

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

Notifications You must be signed in to change notification settings

Gyumeijie/FPChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPChecker

Float number Presentation Checker.

Install

npm install fpchecker

Usage

$ FPChecker number_to_be_checked

Example

$ FPChecker 0.1
The actual number is:  0.1000000000000000055511151231257827021181583404541015625
false
$ FPChecker 0.125
The actual number is:  0.125
true

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages