Just tested that and it gives 9999127 / 10000000.
Unfortunately I never recorded where I got the algorithm from, so I'm having a hard trouble finding it. I guess I'll have to say that I mean ideal...
Type: Posts; User: iMalc
Just tested that and it gives 9999127 / 10000000.
Unfortunately I never recorded where I got the algorithm from, so I'm having a hard trouble finding it. I guess I'll have to say that I mean ideal...
I have a custom C++ fraction data type that does this using a fast convergence algorithm. Its loop contains just 1x fabs, 3x floor, 2x division, 2x multiplication, 2x addition, 2x subtraction, and 4x...