Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random C++ code? bug
Message
De
09/09/2009 12:41:47
 
 
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:
01423306
Vues:
31
>>>>>Check "Visual FoxPro System Capacities" in Help. I guess the computations up to 15 digits can give the correct numbers.
>>>>
>>>>Sure, the numbers Fabio showed are beyond the system capabilities. But the point is, some of them give error messages, and some give only seemingly random results, without indicating, with any error, that something went wrong. Nothing you can trap with TRY for example.
>>>
>>>Right, I understood it - that's why I proposed to use numeric 20 instead and use a transform function.
>>
>>numeric() is a fake.
>>It uses float64, with the 15 digits limit.
>>
>>
>>? CAST("22919090710007290" as N(20))=CAST("22919090710007299" as N(20))
>>
>
>Too bad :(((

If you are not yet convinced
CLEAR

CREATE CURSOR ab (xx N(19))
APPEND BLANK
replace xx WITH 12345678901234560
FOR k=1 TO 10000
	replace xx WITH xx+9    && try to add 10 ...
NEXT
? xx && xx stands still
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform