Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calcualation on large number
Message
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:
01583703
Vues:
87
Hi Gerard,

you are not going to be able to do it directly. Visual FoxPro can handle numbers up to 9007199254740992 (2^53) in exact computations, that is 16 digits.

You can use scientific notation for numbers larger than those ones, but you won't get accuracy for 30 digits, as it has accuracy for 16 decimal places (as the help file says, LOG10(2^53) = 15.95 decimal digits accuracy).


>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform