[PD] number to fractions external?
Alexandre Torres Porres
porres at gmail.com
Fri Dec 16 16:51:25 CET 2011
> i had a go at it
thanks, I kinda had to go too, but no time... :(
> yeah, my patch only works for rational numbers.
you know what, I think I asked this before on this list,
> will have a look at the article / method you posted, claude.
are you going at it too? :)
by the way, I meant something like 1.75 becomes 7/4 and not 3/4, but that
is easy to adapt on your patch
2011/12/16 i go bananas <hard.off at gmail.com>
> by the way, here is the method i used:
> first, convert the decimal part to a fraction in the form of n/100000
> next, find the highest common factor of n and 100000
> (using the 'division method' like this:
> http://easycalculation.com/what-is-hcf.php )
> then just divide n and 100000 by that factor.
> actually, that means it's accurate to 6 decimal places, i guess.
> well...whatever :D
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list