Page 2 of 2

Posted: Fri Jun 01, 2007 5:22 pm
by Dr. Dri
imho since a float division by 0.0 gives consistent results it shouldn't be forbidden

Dri

Posted: Fri Jun 01, 2007 6:17 pm
by Flype
well, many languages display an error on such expression.

for example, here is the Python 2.5.1 output :
>> 25 / 0.0

>> ZeroDivisionError: float division.
>> 25 / 0

>> ZeroDivisionError: integer division or modulo by zero.

about mathematic expression, i can trust python which is very sure & stable.

when i have a doubt in purebasic, then i often test in python...

Posted: Fri Jun 01, 2007 10:02 pm
by Dr. Dri
if you want a comparison :
i remember of having got the "inf" value in script languages (java, ecmascript, ...) and from compiled languages (C)

Dri