mIRC Home    About    Download    Register    News    Help

Print Thread
Page 4 of 4 1 2 3 4
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Lol. Though, mIRC should probably be correct in how it handles orders of operation. Still, it isn't hard to correct if you really need it. smile

Joined: Dec 2002
Posts: 206
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 206
The point is just that it is unambiguously wrong.

C
C45P3R
C45P3R
C
If you will notice you have -2-2 not -2^2 = -4 on your calculator Raccoon.
the second 0-2^2 becomes 0-(2^2) because the minus sign is an operator.
And in -(2^2) well the - is applied after the exponent is worked out.
but in the case of just -2^2 it is not a minus operator but infact signifying it as a negitive number. the +/- button makes it -2^2 become (-2)^2 invisibly because minus was not used but a negitive to the base number.

But in the end yes in mIRC and programming that don't have +/- to signifiy the number/base as negitive it is in fact a minus so -2^2 = -4, But calcaulators -2(negative two) is the same as (-2) when programming.

Calculator:
[+/-] [2] [^] [2] [=] 4
[-] [ 2] [^] [2] [=] -4

Programs:
-2^2=-4

Simple no?

Page 4 of 4 1 2 3 4

Link Copied to Clipboard