beautiful bug

DiscussionsPurely Programmers

Rejoignez LibraryThing pour poster.

beautiful bug

Ce sujet est actuellement indiqué comme "en sommeil"—le dernier message date de plus de 90 jours. Vous pouvez le réveiller en postant une réponse.

1hnau
Fév 22, 2011, 3:11 am

http://www.anglo-american.co.uk currently displays ISBNs in exponential format:

ISBN: 9.78E+12

2bnielsen
Fév 22, 2011, 3:36 am

Ah, that's great. Thanks for sharing.

3walt.speelman
Fév 4, 2012, 1:49 am

they seem to have fixed the expontial display ... but they have lost a little precision in the ISBN. Those last five digits are not important are they?

4PaulFoley
Modifié : Fév 4, 2012, 7:09 pm

There's nothing actually wrong with storing an ISBN in a 64-bit float; there's plenty of room (you don't lose the last 5 digits), and it's more storage-efficient than a string...ISBN-10s can end in X, but there's no reason to store the check-digit. Printing them with standard float-printer is obviously stupid, though...