Hi everybody,
the following will also compile on PB/Win but you need to change the print
statements
Why is -1^2 = 1 where it should be -1
FUNCTION PBMAIN() AS LONG
Local eA, eB As Extended
Local nA, nB As Long
eA = -1
eB = 2
Print eA ^ eB
nA = -1
nB = 2
Print nA ^ nB
Print -1^2 ' this one is ok. = -1
END Function
If this is a problem then I will report it to support but maybe there is another
explanation.
Cheers
Steven
the following will also compile on PB/Win but you need to change the print
statements
Why is -1^2 = 1 where it should be -1
FUNCTION PBMAIN() AS LONG
Local eA, eB As Extended
Local nA, nB As Long
eA = -1
eB = 2
Print eA ^ eB
nA = -1
nB = 2
Print nA ^ nB
Print -1^2 ' this one is ok. = -1
END Function
If this is a problem then I will report it to support but maybe there is another
explanation.
Cheers
Steven
Comment