3 ms·
It seems bizarre to call the first group of methods "decimal based" when the methods don't ever look at the decimal digits of the number being tested. I would c
by omaranto 15y ago
It seems bizarre to call the first group of methods "decimal based" when the methods don't ever look at the decimal digits of the number being tested. I would call them "arithmetic" or something like that.
- rcfox 15y agoIt's decimal as in base 10, as opposed to binary.
- eru 15y agoBut they aren't in base 10. The constant mentioned might as well have been put into the code in hex or octal and nothing would have changed. (I don't know whether C support binary constants.)
- tesseract 15y agoOr "representation independent", although the ones that rely on the number being less than INT_MAX obviously rely on some knowledge of the representation.