Re: How to prevent division by zero?
- Posted by DerekParnell (admin) Sep 15, 2012
- 1114 views
SnakeCharmer said...
I need to prevent division by zero.
This should be enough ...
include std/math.e if x = 0 y = PINF -- Positive infinity else y = 1 / x end if
[/quote]