beautiful bug

De qué se hablaPurely Programmers

Únase a LibraryThing para publicar.

beautiful bug

Este tema está marcado actualmente como "inactivo"—el último mensaje es de hace más de 90 días. Puedes reactivarlo escribiendo una respuesta.

Feb 22, 2011, 3:11am currently displays ISBNs in exponential format:

ISBN: 9.78E+12

Feb 22, 2011, 3:36am

Ah, that's great. Thanks for sharing.

Feb 4, 2012, 1:49am

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?

Editado: Feb 4, 2012, 7:09pm

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...