Can someone inform me on what the "-=" function does? thanks.
bwjones
0
Junior Poster in Training
Recommended Answers
Jump to PostCan someone inform me on what the "-=" function does? thanks.
It is not a function is an arithmetic operator and assignment operator short cut.
number -= x;
same as
number = number - x;
Jump to Postahh i c. So rem-=50 is rem = rem-50? and rem+=50 = rem=rem+50? I'm a complete noob to programming and with an instructor who assumes the class is on his level when 3/4 isn't learning all this from scratch is a bit intense so I might show up with stupid …
All 5 Replies
Aia
1,977
Nearly a Posting Maven
bwjones
0
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
jephthah
1,888
Posting Maven
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.