Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computing
Message
De
26/03/1999 20:35:56
Larry Santos
Local Data System
Philippines
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00201706
Message ID:
00202645
Vues:
21
Hi,

The ntotDetail is Numeric I din't assign it to currency and also ntotExpense

NOTE:
I did not assign currency to all my table i used Numeric 10,2

TIA

>Hi,
>
>May you be more specific on used tables' structure. How do you calculate ntotDetail and ntotExpense? Check type of ntotDetail and ntotExpense ( example ? Type("ntotDetail")) it shouldn't be "Y", which stands for currency.
>
>>Hi...
>>
>> Thanks. but I declare it as a Numeric not currency, and still the computation is wrong....
>>
>>TIA
>>
>>
>>>>>Try to use
>>>>>
>>>>>scan for
>>>>> nTemp = field1
>>>>> * nTemp is a local variable
>>>>> nAll=(nTemp/ntotDetail)*ntotExpense
>>>>>endscan
>>>>
>>>>still the same as the result
>>>
>>>Sorry for the first reply.
>>>Seemingly field1 has data type "Currency", which provides precision 4 decimals.
>>>Conversion to data type "Numeric" does the trick:
>>>
>>>scan for
>>> nAll=(MtoN(field1)/ntotDetail)*ntotExpense
>>>endscan
>>>
>>>Sincerely,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform