Package org.ojalgo.scalar
Class Price
- All Implemented Interfaces:
Comparable<Price>
,Field<Scalar<Price>>
,Group
,Group.Additive<Scalar<Price>>
,Group.Multiplicative<Scalar<Price>>
,NormedVectorSpace<Scalar<Price>,
,Price> Operation
,Operation.Addition<Scalar<Price>>
,Operation.Division<Scalar<Price>>
,Operation.Multiplication<Scalar<Price>>
,Operation.Subtraction<Scalar<Price>>
,Ring<Scalar<Price>>
,ScalarOperation
,ScalarOperation.Addition<Scalar<Price>,
,Price> ScalarOperation.Division<Scalar<Price>,
,Price> ScalarOperation.Multiplication<Scalar<Price>,
,Price> ScalarOperation.Subtraction<Scalar<Price>,
,Price> VectorSpace<Scalar<Price>,
,Price> Scalar<Price>
,SelfDeclaringScalar<Price>
,AccessScalar<Price>
,Tensor<Price,
,Scalar<Price>> NumberContext.Enforceable<Price>
,NumberDefinition
price or exchange rate as in "amount = price * quatity" or "amount = rate * amount"
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.scalar.ExactDecimal
ExactDecimal.Descriptor, ExactDecimal.Factory<S extends ExactDecimal<S>>
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Group
Group.Additive<T>, Group.Multiplicative<T>
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Operation
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>
Nested classes/interfaces inherited from interface org.ojalgo.algebra.ScalarOperation
ScalarOperation.Addition<T,
N extends Comparable<N>>, ScalarOperation.Division<T, N extends Comparable<N>>, ScalarOperation.Multiplication<T, N extends Comparable<N>>, ScalarOperation.Subtraction<T, N extends Comparable<N>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExactDecimal.Descriptor
private static final double
static final Scalar.Factory
<Price> private static final long
static final Price
static final Price
static final Price
static final Price
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExactDecimal.Descriptor
static Price
valueOf
(double value) static Price
valueOf
(Comparable<?> number) protected Price
wrap
(long numerator) Methods inherited from class org.ojalgo.scalar.ExactDecimal
add, add, compareTo, conjugate, divide, divide, doubleValue, enforce, extractUnscaledValue, floatValue, get, intValue, invert, isAbsolute, isSmall, longValue, multiply, multiply, negate, norm, numerator, power, signum, subtract, subtract, toBigDecimal, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, shortValue
Methods inherited from interface org.ojalgo.scalar.Scalar
add, dimensions, divide, multiply, rank, subtract, toPlainString
Methods inherited from interface org.ojalgo.scalar.SelfDeclaringScalar
add, divide, multiply, subtract
Methods inherited from interface org.ojalgo.tensor.Tensor
components, isSameShape
-
Field Details
-
DESCRIPTOR
-
FACTORY
-
DOUBLE_DENOMINATOR
private static final double DOUBLE_DENOMINATOR- See Also:
-
LONG_DENOMINATOR
private static final long LONG_DENOMINATOR- See Also:
-
NEG
-
ONE
-
TWO
-
ZERO
-
-
Constructor Details
-
Price
public Price() -
Price
Price(long numerator)
-
-
Method Details
-
valueOf
-
valueOf
-
multiply
-
descriptor
- Specified by:
descriptor
in classExactDecimal<Price>
-
wrap
- Specified by:
wrap
in classExactDecimal<Price>
-