mirror of
https://dicksdeathabove.xyz/~mia/psh-fractional
synced 2024-11-08 16:34:21 +00:00
addition | ||
division | ||
multiplication | ||
subtraction | ||
LICENSE | ||
README | ||
tester |
--- psh-fractional -- fractional math in pure sh, successor to psh-float-micro --- Dev Status -- this is on pause for now; I'm really tired --- Current Status -- addition 100% working -- subtraction ~90% working ---- decimal placement working now ---- some numbers produce the wrong results... no idea why -- multiplication 100% working -- division ~90% working ---- may sometimes produce to many decimals ---- rarely places decimals in wrong places --- Outer Usage -- it is recommended to use this library with the upcomming -- psh-fc if you wish to compare numbers that it produces -- as decimal numbers are not considered numbers by posix sh ---- https://dicksdeathabove.xyz/~mia/psh-fc --- Tester -- a tester is present at ./tester; it is ofc not pure sh as it compares with bc -- additionally using it requires that $RPATH is set to ?/psh-prng/ran ---