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.
In reply to Re^2: Simple arithmetic?
by BrowserUk
in thread Simple arithmetic?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |