public interface MathMode
Modifier and Type | Method and Description |
---|---|
int |
add(int c1,
int c2)
Add c1 with c2.
|
int |
div(int c1,
int c2)
Divides c1 by c2 (without remainder).
|
int |
mul(int c1,
int c2)
Multiplys c1 ith c2.
|
int |
sub(int c1,
int c2)
Subtract c2 from c1.
|
String |
toString()
get the identitfication representation.
|
int mul(int c1, int c2)
Multiplys c1 ith c2.
c1
- the first operandc2
- the second operandint div(int c1, int c2)
Divides c1 by c2 (without remainder).
c1
- the dividendc2
- the divisorint add(int c1, int c2)
Add c1 with c2.
c1
- the first operandc2
- the second operandint sub(int c1, int c2)
Subtract c2 from c1.
c1
- the base valuec2
- the the value to subtract from the base valueCopyright © 2023. All rights reserved.