Class DecimalValue
java.lang.Object
net.woggioni.jmath.DecimalValue
- All Implemented Interfaces:
Comparable<DecimalValue>, NumericType<DecimalValue>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()add(DecimalValue other) protected booleanintdiv(DecimalValue other) booleaninthashCode()mul(DecimalValue other) static DecimalValueof(double n) static DecimalValueof(double n, DecimalFactory decimalFactory) sqrt()sub(DecimalValue other) toString()
-
Constructor Details
-
DecimalValue
-
-
Method Details
-
add
- Specified by:
addin interfaceNumericType<DecimalValue>
-
sub
- Specified by:
subin interfaceNumericType<DecimalValue>
-
mul
- Specified by:
mulin interfaceNumericType<DecimalValue>
-
div
- Specified by:
divin interfaceNumericType<DecimalValue>
-
abs
- Specified by:
absin interfaceNumericType<DecimalValue>
-
sqrt
- Specified by:
sqrtin interfaceNumericType<DecimalValue>
-
compareTo
- Specified by:
compareToin interfaceComparable<DecimalValue>
-
of
-
of
-
toString
-
equals
-
canEqual
-
hashCode
-