is difference
#1

Hi,

Is there any difference
Код:
new numberrs[ 2 ];

if( numberrs[ 0 ] + numberrs[ 1 ] > 100 )
{

}

and

if( (numberrs[ 0 ] + numberrs[ 1 ]) > 100 )
{

}
Reply
#2

There's no difference in that case.

Example where a difference is present: If you use the equal operator "=" then there is a difference as the entire statement is accounted. Parenthesis will indicate to only account what's within it.
Reply
#3

Pawn Language Guide, pages 111 and 112.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Pawn Language Guide, pages 111 and 112.
Despite, still no difference here.
Reply
#5



I guess I'll never learn pawn
Reply
#6

Its basic math..

Is (0+0) greater than 100.
5(2+5) = 5*2+5*5
9(7/100) = 9*7 = a, 9*100 = b, a/b is result
3*(7-3) = 3*7-3*3
9*(5+7) = 9(5+7) = 9*5+9*7


Didn't you learn this in like, 7th grade? I did atleast..
Reply
#7

Quote:
Originally Posted by nG Inverse
Посмотреть сообщение
Despite, still no difference here.
Did I say it would?

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
I guess I'll never learn pawn
Sites like these are complete rip-offs because that document is publicly available. I've also seen other sites that try to get you to pay for product manuals which are also publicly available.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)