Talk:Sum digits of an integer: Difference between revisions

Line 9:
 
:::: I've rewritten “0xfe” to “<code>fe</code><sub><code>16</code></sub>” in the task description; the issue with it before was that “0xfe” is just an encoding of the number (in a way that happens to be a numeric constant in many languages) and not the number itself. In particular, “x” isn't a hex digit. –[[User:Dkf|Donal Fellows]] 08:55, 31 July 2012 (UTC)
 
 
== Input base ==
 
Does the input base matter at all? No matter what the base is, the digit 1 has value 1, 2 means 2, ... a means 10, ... z means 35. Unless we're expected to throw an error if the input contains a digit that is not valid for the given base, I don't see the point of specifying one?
1,480

edits