Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Result of Division of 0 by 0
Message
 
To
26/01/2007 12:59:07
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01189726
Message ID:
01189774
Views:
6
x = 0
y = 0

z = x/y

z > 0 = .F.
z < 0 = .T.
z < -1 = .T.
z < -9999999 = .T.

It's a numeric field but can't be displayed (maybe its negitive infinity?). From a mathmatical standpoint - you can't divide by zero anyway - its supposed to be impossible. I'm suprised VFP doesn't give an error when you try to do that. Anyway I've always just checked for the possibilty in my code where I need to.
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform