Dnia 00-09-28 Aley Keprt pisze:

> So why cannot we accept any (numeric) answer?
> 0*anything=0
> infinite*anything=infinite
> This implies that 0=infinite.

Well...

0 * anything = 0

only when this "anything" isn't infinite, and

infinite * anything = infinite

only when this "anything" isn't zero, so

0 * infinite        = anything
0 / 0               = anything
infinite / infinite = anything



And by the way... Have someone thought about a calculator code
(like RST #28 in ZX Spectrum) that could use a binary
representation for "infinite" and "anything" and could return
them as a calculation results, not generating "higher level"
errors (crashes) like "division by zero" or "number too big"?

This could make life simpler...

We would get 6 new values:

-1E-38 < "-zero" <= 0 <= "+zero" < 1E-38

"-infinite" < -1E38 < "-anything" <= 0

0 <= "+anything" < 1E38 < "+infinite"

--
Yarek.


Reply via email to