bendenj
January 7th, 2008, 09:49 AM
Hi Gurus,
I'm looking for a way to find a most common divider
for 2 numbers.
There are many algorithms out there, but all of them are for
integer numbers only.
I'm looking for code or an alogrithm idea that will deliver the
same, but for 2 float/double numbers.
For example:
4.44 and 39.96 has great common divider of : 4.44
4.44 and 6.66 has : 2.22
etc...
Any help would be highly appreciated,
Thanks!
Josh.
I'm looking for a way to find a most common divider
for 2 numbers.
There are many algorithms out there, but all of them are for
integer numbers only.
I'm looking for code or an alogrithm idea that will deliver the
same, but for 2 float/double numbers.
For example:
4.44 and 39.96 has great common divider of : 4.44
4.44 and 6.66 has : 2.22
etc...
Any help would be highly appreciated,
Thanks!
Josh.