Forum Moderators: open
Online payments broker PayPal has admitted it erroneously credited a man with $92 quadrillion (£60 quadrillion).
Chris Reynolds, 56, of Pennsylvania, found the amount when he opened his monthly statement.
But the error was quickly recognised and his account had returned to zero by the time he had logged in.PayPal Accidentally Credits an Account With $92,233,720,368,547,800 [bbc.co.uk]
'Number-to-words conversion French and English
'Work with positive and negative number
'Give 2 decimal result for cent
'Hyphen insertion between number that need it
'"S" are added when words are in the plural
'Range from minus -922,337,203,685,477 to 922,337,203,685,477 (922 trilions US)(922 billions French)
'Overflow return "Error" or "Erreur"
'Thank to the VB2TheMax Team
'Example: 123 will return "ONE HUNDRED TWENTY-THREE" or "CENT VINGT-TROIS"
.
----[snipped]-----------------------
INCR Level
IF Level = 1 THEN
IF Number < -922337203685477 THEN 'If number is to big it will revert to -922337203685478
NumberToWords = "ERROR"
Level = 0
EXIT FUNCTION
END IF
----[snipped]-----------------------
.
.
complete source code at: [powerbasic.com...]
Is 2^63 a limit on certain hardware? I'm thinking maybe a mix of 64-bit machines and 32-bit machines running the same software caused it...