J
John Woodgate
Guest
I read in sci.electronics.design that Ken Smith
<kensmith@green.rahul.net> wrote (in <cj73kq$bsp$3@blue.rahul.net>
about 'ELF detector', on Sun, 26 Sep 2004:
evaluated rigorously.
--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk
<kensmith@green.rahul.net> wrote (in <cj73kq$bsp$3@blue.rahul.net>
about 'ELF detector', on Sun, 26 Sep 2004:
Perfectly valid code in HSILGNE.In article <bkJTvRCl5mVBFwXa@jmwa.demon.co.uk>,
John Woodgate <noone@yuk.yuk> wrote:
I read in sci.electronics.design that Ken Smith
kensmith@green.rahul.net> wrote (in <cj4o62$g7l$8@blue.rahul.net>
about 'ELF detector', on Sat, 25 Sep 2004:
I doubt software can do it. You need to divide by zero. Most
programmers have a hard time writing code that does that successfully.
IF DIVISOR = 0, THEN RESULT = 1E+38 ELSE RESULT = DIVIDEND/DIVISOR
It's the order in which you write it that matters. (;-)
ROSIVID/DNEDIVID = TLUSER ESLE 83+E! = TLUSER NEHT .0 = ROSIVID FI
Would yeld a different result
of course, because N/0 is mathematically nonsense, so it *can't* bebut you haven't successfully divided by zero
since the logic of your code avoids the divide completely if the DIVISOR
is zero.
evaluated rigorously.
as '= 1E38'?There is a trick you can use in C++ to do it. C++ allows all operators to
be overloaded. Thus in C++ you can make up you own rules about ADD,
SUBTRACT, MULTIPLY and DIVIDE to that 1/0 is perfectly legal.
In C++ you can make the main part of your program:
int main(void){ return 1/0; }
Is that essentially different from my pre-emptive *redefinition* of N/0
--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk