# Fraction.js

The RAW rational numbers library written in JavaScript

Canonical page: https://www.reposhelf.co.uk/projects/github/rawify/fraction.js.html

- Project ID: rawify/Fraction.js
- Source: GitHub
- Original project: https://github.com/rawify/Fraction.js
- Description attribution: project author metadata
- Categories: Developer tools, Maths &amp; algorithms
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-20T13:34:53.749Z
- Demo page loaded: 2026-11-23T18:21:26.413Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Do you find the limitations of floating-point arithmetic frustrating, especially when rational and irrational numbers like π or √2 are stored within the same finite precision? This can lead to avoidable inaccuracies such as:

> For applications requiring higher precision or where working with fractions is preferable, consider incorporating Fraction.js into your project.

> The library effectively addresses precision issues, as demonstrated below:



## Author-documented requirements and audience

> Do you find the limitations of floating-point arithmetic frustrating, especially when rational and irrational numbers like π or √2 are stored within the same finite precision? This can lead to avoidable inaccuracies such as:



- Account — Required: Returns the actual number with flipped sign in order to get the additive inverse

Not recorded: External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/rawify/Fraction.js/blob/main/README.md

Extraction checked: 2026-10-21T02:03:02.495Z

Last recorded source update: 2025-09-26T19:34:28.000Z

Saved release: Not recorded. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=rawify%2FFraction.js). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
