Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Divide by Zero error
Message
 
 
To
01/06/2015 12:42:34
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01620440
Message ID:
01620442
Views:
63
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform