Forgot your password?

typodupeerror
It's funny.  Laugh. The Almighty Buck Idle

Moving Decimal Bug Loses Money 420

Posted by CmdrTaco
from the test-your-code-people dept.
mario.m7 writes "Poste Italiane, the Italian postal service, suffered yesterday from an abnormal computation in ATM and credit card operations, since the decimal comma was not taken into account. The whole sum was therefore multiplied by 100, resulting in a 115,00 Euro transaction being debited as 11.500 Euro! Thousands of accounts are deep in the red and locked (link pumped through translator), so that no more operations are possible. Poste Italiane is gradually recovering the problem, fixing the error and re-crediting the sum debited in excess. Consumer associations have offered support to clients in case this lasts longer and causes damage."
This discussion has been archived. No new comments can be posted.

Moving Decimal Bug Loses Money

Comments Filter:
  • You mean 11,500 Euro (Score:5, Informative)

    by Chrisq (894406) on Wednesday November 25 2009, @11:17AM (#30226162)
    You mean 11,500 Euro as 11.500 Euro.
  • by sopssa (1498795) * <sopssa@email.com> on Wednesday November 25 2009, @11:27AM (#30226302) Journal

    This is the same in my bank, if you type in . it gives an error. In addition it requires you to type in the ,00 too, and next to the sum text box is an example like "150,00".

    Having comma/decimal as a separator is stupid anyway, space does just fine - 150 000.35

  • by ls671 (1122017) * on Wednesday November 25 2009, @11:36AM (#30226402) Homepage

    I am not American, but I find the comma used as decimal point stupid and silly although I should be using it in my native locale.

  • by Anonymous Coward on Wednesday November 25 2009, @11:54AM (#30226626)

    Your post makes no sense. The only thing that makes sense is using spaces for thousands separator. That's also the international standard.

  • Re:Not helping! (Score:3, Informative)

    by emm-tee (23371) on Wednesday November 25 2009, @12:13PM (#30226886)

    ...it's worth clarifying whether they're using the decimal or comma convention in the summary itself!

    Yep the submitter got it wrong. Given that he is posting in English, to an American website, it makes no sense to use the comma as the decimal separator and the period as the thousands separator (unless the idea was to intentionally cause confusion to prove the point).

    With a few exceptions (e.g. South Africa), the rule of thumb seems to be that if you're using English, you use "." as the decimal separator.

    Wikipedia has a very long article on these things http://en.wikipedia.org/wiki/Decimal_separator [wikipedia.org], but most interesting is the diagram showing which countries use which. I found it surprising how many use "," as the decimal point. http://en.wikipedia.org/wiki/File:DecimalSeparator.png [wikipedia.org]

  • by mea37 (1201159) on Wednesday November 25 2009, @12:32PM (#30227126)

    You're letting the punctuation confuse you. The computer doesn't use punctuation to represent the number.

    The error was essentially that a number of Euro cents was interpreted as a number of Euro.

    So if someone entered 11500 euro cents (115.00 Euro using American punctuation, 115,00 using European punctuation - which seems fair since we're counting Euros), and the display showed them that this is what they had entered, but the computer interpreted it as 11500 euros (11,500 using American punctuation, 11.500 using European). Just as TFS says.

    "without _moving_ the seperator (or omitting it completely)" ... which is exactly what the summary says happened. Hell, did you even read the headline?

  • by Duradin (1261418) on Wednesday November 25 2009, @12:59PM (#30227426)

    Look at what those numbers are divisible by:
    12 can be divided evenly by 2,3,4 or 6.
    36 can be divided evenly by 2,3,4,6,9,12,18.
    5280 can be divided evenly by 2, 3, 4, 5, 6, 8, 10, 11, 12, 15, 16, 20, 22, 24, 30, 32, 33, 40, 44, 48, 55, 60, 66, 80, 88, 96, 110, 120, 132, 160, 165, 176, 220, 240, 264, 330, 352, 440, 480, 528, 660, 880, 1056, 1320, 1760, 2640. The important ones being 2,3,4,5,6,8,10.

    Plus metric measurements are generally too small (cm) or too big (m) to be practical for day to day uses.

    So if you look at it from a pencil and paper math era perspective having the nice fractions was a plus. (
    It's why we (thankfully) don't have metric time. 60 is divisible by 2,3,4,5,6,10,12,15,20, and 30. 100 is only divisible by 2,5,10,20,25, and 50. The Babylonians were onto something.)

  • by Fzz (153115) on Wednesday November 25 2009, @01:01PM (#30227446)
    I await the US and Britain's change to the 'universal' standard with interest.

    Um, maybe look again [wikipedia.org]. Most of Asia including India, China and Japan uses a decimal point rather than a decimal comma. If you want a popularity contest, dot wins.

    But it's not really about popularity is it? If the accompanying text is English, it should be a dot. If the accompanying text is French it should be a comma. Unless you're Canadian, in which case you're probably just confused.

  • by Anonymous Coward on Wednesday November 25 2009, @01:05PM (#30227490)

    The sense of our measurement system comes in the ease with which you can break down larger measures into smaller. Yards have 36 inches: that's divisible by 2, 3, 4, 6, 9, 12, and 18; you can do a lot of measuring and cutting easily in your head, without having to fuss with fractions. Volume measures are the best example:

    Gallon: 128 fluid ounces, 16 cups, 8 pints, or 4 quarts
    Quart: 32 fluid ounces, 64 Tablespoons, 4 cups, or 2 pints
    Pint: 16 fluid ounces, 96 teaspoons, 32 Tablespoons, or 2 cups
    Cup: 8 fluid ounces, 48 teaspoons, 16 Tablespoons
    Tablespoon: 1/2 fluid ounce, 3 teaspoons
    Teaspoon: 1/6 fluid ounce

    There's lots of powers of two and multiples of 2, 3, and 4 in there, which make it easy to measure and adjust. The sizes also scale up elegantly, unlike the 1000x or 100x jump in scale between milliliters and liters or centimeters, meters, and kilometers. Or grams and kilograms; a gram is way too small to be a useful daily measurement, and a kilogram is way too big. Ounces come 16 to the pound; again, a power of two, and an ounce of water is around 2 Tablespoons, which means an ounce of most stuff will also be a useful volume.

  • by Nyrath the nearly wi (517243) on Wednesday November 25 2009, @02:12PM (#30228362) Homepage

    This is just one of the many pitfalls when trying to localize your software.

    Does Your Code Pass The Turkey Test? [moserware.com]

  • by Daimanta (1140543) on Wednesday November 25 2009, @02:16PM (#30228434) Journal

    "Plus metric measurements are generally too small (cm) or too big (m) to be practical for day to day uses."

    Furthermore imperial measurements are generally too large (inch) or too small (yard) to be practical for day to day users. The fact that the mile exists also creates confusion because every old nations used to have it's own "mile" which either a lot bigger or a lot smaller than the English "mile".

    Also multiplication by a number that is not equal to the numberbase(10) is annoying to use.

    Out of the top of my head

    1000mm=100cm=100dm=1m=0,1Dm=0,01hm=0,001km=0,000001Mm

    Try to do that with the imperial system which randomly swaps between 6,2,12 and whatever they feel like.

  • by ivucica (1001089) on Wednesday November 25 2009, @04:32PM (#30230194) Homepage
    Whoops. Wrong key pressed. Thanks.
  • by wastedlife (1319259) on Wednesday November 25 2009, @04:56PM (#30230478) Homepage Journal

    Plus metric measurements are generally too small (cm) or too big (m) to be practical for day to day uses.

    Excellent point. It is too bad that there is no measurement between the two. Hmm, maybe we should email the SI about this? It could be 1/10th of a meter, and how about "deci" (to indicate 10) as the prefix? I think it might solve the problem!

Space is to place as eternity is to time. -- Joseph Joubert

Working...