pmath

library that resolves the inaccuracies of normal float math.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.1
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:26

Authors

  • thatrandomperson5

Installation

nimble install pmath
choosenim install pmath
git clone https://github.com/nlits-projects/pmath

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
pmath - - - - - - -

Dependencies

Package Version Optional
nim >= 2.0.0 No
bigints >= 1.0.0 No

Source

Repository https://github.com/nlits-projects/pmath
Homepage https://github.com/nlits-projects/pmath
Registry Source nimble_official

README

PMath

PMath is meant to be a library that resolves the inaccuracies of normal float math. PMath does not use any floats, and retains the most accurate format of a given number.

Install With:

nimble install https://github.com/nlits-projects/pmath@#latest

Linktree

Past Updates

0.1.0

  • [X] Create PNum type
  • [X] Add Fractions
  • [X] Add Radicals
  • [X] Add basic arithmetic
  • [X] Add pow and root
  • [X] Basic type conversion
  • [X] Docs
  • [X] Other

0.1.1

  • [X] BigInt Support
  • [X] License
  • [X] More Examples

Future Updates

This readme is up to date with the latest github commit, not the latest release, so be careful.

0.1.2

Nothing yet

0.2.0

  • [X] Refactor file structure
  • [ ] Start Expanded (log, abs, sin, cos, tan)
  • [ ] Add Optimizations (specifically minimize simplfy calls)

1.0.0

  • [ ] Type Overhaul
    • [ ] Additive Groups
    • [ ] Irrational Numbers
    • [ ] Radical Addition
    • [ ] Radical Subtraction
  • [ ] Flesh out expanded (arccos, arctan, arcsin, etc.)

Far Future (Or somone else can do it)

  • [ ] Create BigDecimals/BigFloats with cross conv with BigInts