mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
53 lines
822 B
XML
53 lines
822 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>-= (subtract assign)</name>
|
|
|
|
<category>Math</category>
|
|
|
|
<subcategory>Operators</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int a = 50;
|
|
int b = 23;
|
|
a -= b; // sets "a" to 27
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Combines subtraction with assignment. The expression <b>a -= b</b> is equivalent to <b>a = a - b</b>.
|
|
</description>
|
|
|
|
<syntax>
|
|
<c>value1</c> -= <c>value2</c>
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>value1</label>
|
|
<description>int or float</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>value2</label>
|
|
<description>int or float</description>
|
|
</parameter>
|
|
<returns></returns>
|
|
|
|
<related>
|
|
+= (add assign)
|
|
- (minus)
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Operator</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
|
|
|
|
</root>
|