Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Divide by Zero error
Message
 
 
À
01/06/2015 12:42:34
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01620440
Message ID:
01620442
Vues:
64
>Hello comunity
>
>i need to calculate tax rates on VFP, but i have always the "error divide by zero"
>The values are:
>
>10000,00 / 0,55666
>
>also, how can replace "," to ".".
>
>Could someone help me,
>
>Many thanks
>Luis Santos

Try using CAST function with both values, e.g.
CAST(dividend as N(10,2)) / CAST(divisor as N(17, 6))
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform