Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random C++ code? bug
Message
De
09/09/2009 12:16:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01423285
Message ID:
01423296
Vues:
36
>>>>I would prefer an error message 1988.
>>>>RAND () is enough for me as a random function :-)
>>>>
>>>>This return two numbers!
>>>>
>>>>? $2291909071000729
>>>>? $22919090710007290
>>>>
>>>>
>>>>this works
>>>>
>>>>? $999999999999999
>>>>
>>>
>>>Fabio,
>>>
>>>
>>>ln = CAST(22919090710007290 as N(20))
>>>=MESSAGEBOX( TRANSFORM(ln,'@$ 999,999,999,999,999,999,999.99'))
>>
>>Sure!
>>But it is too static for my taste! :-)
>>
>>
>>ln = CAST(22919090710007299 as N(20))
>>=MESSAGEBOX( TRANSFORM(ln,'@$ 999,999,999,999,999,999,999.99'))
>>
>
>Check "Visual FoxPro System Capacities" in Help. I guess the computations up to 15 digits can give the correct numbers.

Then, why do you use it with 17 digits ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform