Not sure if this should go into the developers section...
But I made a library called frac which allows for fraction mathematics.
It makes use of a glorified table, created by using Fraction(numerator,denominator).
Then that fraction can be manipulated with the frac library.
The following functions are included (prefix of frac.):
Multiply
Divide
Add
Subtract
SameDenom
IsWholeNumber
Reduce
MultiplyByWholeNumber
ToString
ToDivString
NumberToFraction/FloatToFraction
ToFraction
ToNumber
This could be useful in a few different ways, specifically a graphing utility or whatnot.
[url]https://www.dropbox.com/s/t5aikiycfs48ypb/frac.lua?dl=1[/url]
Use it or don't. I don't really care.
Sorry, you need to Log In to post a reply to this thread.