Raised This Month: $ Target: $400
 0% 

Adding the remainder of 2 variable to another variable?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-06-2010 , 03:12   Adding the remainder of 2 variable to another variable?
Reply With Quote #1

Am I going about it correctly?

PHP Code:
new 5
new 2
new 5
new 
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 07-06-2010 , 08:07   Re: Adding the remainder of 2 variable to another variable?
Reply With Quote #2

Not exactly. What you are doing is initializing a new variable with the sum of an existing variable and a remainder of two other variables.

Adding the remainder of two variables to another variable would be:
PHP Code:
+= c
SnoW is offline
Send a message via MSN to SnoW
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-06-2010 , 12:58   Re: Adding the remainder of 2 variable to another variable?
Reply With Quote #3

Quote:
Originally Posted by SnoW View Post
Not exactly. What you are doing is initializing a new variable with the sum of an existing variable and a remainder of two other variables.

Adding the remainder of two variables to another variable would be:
PHP Code:
+= c
Oh wow, I'm surprised I didn't think of that. Thank you.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode