Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calcualation on large number
Message
De
20/09/2013 07:21:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583702
Message ID:
01583706
Vues:
75
>Hi.
>I need to be able to do Mod(MyNum,97)
>But Mynum, whcih results from a string of digits, could be more than 30 characters
>(This is part of a Banking Application to generate an IBAN check Digit )
>
>Can Foxpro do this correctly
>I've done a few tests with a long number and it does not seem to work
>( I know one option is to take up to 7 characters at a time and do it this way but wonder if this can be avoided)
>
>Tia
>Gerard

Cannot be avoided. You can go up to 13 digits at a time since the remainder only has two digits

Do not forget to padl the number with zeroes so that the length is a multiple of 13 digits
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform