Writing ‘1.0/0.0’ in ieval gives ‘Runtime error 201: Division by zero’. So does ‘a:=1.0;b:=0.0;a/b’. I want +inf.0 returned. And I need a way to write such ‘not-really-a-numbers’ also.
Otherwise OI is not really that useful for numerical work, compared to nearly any other language I might wish to use (not counting regular Icon, which has similar problems).
Obviously these issues exist partly for historical reasons. Icon has spent its history as a lightly tended relic of the IBM PC era, and never made itself a numerical-friendly language.
Writing ‘1.0/0.0’ in ieval gives ‘Runtime error 201: Division by zero’. So does ‘a:=1.0;b:=0.0;a/b’. I want +inf.0 returned. And I need a way to write such ‘not-really-a-numbers’ also.
Otherwise OI is not really that useful for numerical work, compared to nearly any other language I might wish to use (not counting regular Icon, which has similar problems).
Obviously these issues exist partly for historical reasons. Icon has spent its history as a lightly tended relic of the IBM PC era, and never made itself a numerical-friendly language.