Stories
Slash Boxes
Comments
typodupeerror delete not in

Book Reviews

Recent reviews from Slashdot readers:

Submitting a review for consideration is easy; please first read Slashdot's book review guidelines. Updated: 2008114 by samzenpus

+-   $23,148,855,308,184,500.00 a bit much on Wednesday July 15, @03:36PM Hmmm2000

Submitted by Hmmm2000 on Wednesday July 15, @03:36PM
programming
Hmmm2000 writes "Recently several Visa card holders were, um, overcharged for certain purchases, to the tune of $23,148,855,308,184,500.00 on a single charge.

The company says it was due to a programming error, and that the problem has been corrected. What is interesting, is that the amount charged actually reveals the type of programming error that caused the problem.

23,148,855,308,184,500.00 * 100 (I'm guessing this is how the number is actually stored) is 2314885530818450000.

Convert 2314885530818450000 to hexidecimal, and you end up with 20 20 20 20 20 20 12 50.

Most C/C++ programmers see the error now .. hex 20 is a space. So spaces were stuffed into a field where binary zero should have been."
submission

This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
Many people are desperately looking for some wise advice which will recommend that they do what they want to do.