Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Currency data type, BUG or FEATURE?
Message
De
10/03/2006 21:33:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/03/2006 19:38:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01102959
Message ID:
01103341
Vues:
14
> ... My percentages of discount are in doubles (as sometimes you have to include a lot of decimal places to meet a final price to the customer), so in every calculation of the total of invoices, orders, ... I have to do the conversion. I think I'm going to change data types in the table definition.

You might consider defining the discount in absolute terms, rather than percentage. One possibility is to have two discount fields, an absolute amount and a percentage; and (for example) if the absolute amount is empty, use the percentage.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform