开发者

Can a valid 13-digit ISBN have 'x as one of characters? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 12 years ago.

开发者_Python百科 Improve this question

can a valid 13-digit ISBN have any character other then digit 0-9? i.e., can a valid 13-digit ISBN contain character 'X'?


No, a 10-digit ISBN can, though... See http://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-13


No, a 13-digit ISBN uses modulo 10 in calculation of the check digit, so the check digit can be only 0 to 9. Other digits are also 0 to 9 in any versions of ISBN. See this Wikipedia article for details.


No it can't - the Wikipedia page explains:

The calculation of an ISBN-13 check digit begins with the first 12 digits of the thirteen-digit ISBN (thus excluding the check digit itself). Each digit, from left to right, is alternately multiplied by 1 or 3, then those products are summed modulo 10 to give a value ranging from 0 to 9. Subtracted from 10, that leaves a result from 1 to 10. A zero (0) replaces a ten (10), so, in all cases, a single check digit results.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜