New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fracty

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fracty

Fracty is a decimal-to-fraction conversion module that solves the many well known problems decimal-to-fraction conversion libraries have. Those common problems include conversion inaccuracies in the IEEE Standard for Float-Point Arithmetic (IEEE 754), mis

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
515
decreased by-2.28%
Maintainers
1
Weekly downloads
 
Created
Source

Fracty

Fracty is a decimal-to-fraction conversion module that solves the many well known problems decimal-to-fraction conversion libraries have. Those common problems include conversion inaccuracies in the IEEE Standard for Float-Point Arithmetic (IEEE 754), mishandling numbers with trailing repeat patterns, and incorrect pattern recognition. Fracty simply takes one argument, a number without any rounding and, in keeping with the most standard numbering conventions of monetary divisibility, etc., imagines that any trailing repeating pattern beyond two decimal places continues infinitely, and returns that input as a string of the fully reduced fraction equivalent.

Keywords

FAQs

Package last updated on 23 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc