in reply to Re: Simple arithmetic?
in thread Simple arithmetic?
Inspired by previous answers.
I like your way of incorporating hdb's powers-of-two observation into the GCD() calculation.
the absence of bugs is totally not guaranteed
Understood. It's my responsibility to test code I use.
It stands up to all the likely scenarios (for my application) that I've tested. Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Simple arithmetic?
by hdb (Monsignor) on Mar 08, 2015 at 12:47 UTC | |
by Anonymous Monk on Mar 08, 2015 at 13:03 UTC |