Talk:Sum digits of an integer: Difference between revisions
→Input base: yes it does
(→Input base: Is it needed?) |
(→Input base: yes it does) |
||
Line 14:
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? --[[User:Markjreed|Markjreed]] ([[User talk:Markjreed|talk]]) 02:10, 30 January 2015 (UTC)
:10 in binary does not equal 10 in hexadecimal, so unless the input is a single digit, yes, it does need to be specified. -- [[User:Eriksiers|Erik Siers]] ([[User talk:Eriksiers|talk]]) 03:38, 30 January 2015 (UTC)
|