public class Money extends DoubleScalar.Rel<MoneyUnit> implements Relative
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-07 11:49:36 +0200 (Wed, 07 Oct 2015) $, @version $Revision: 92 $, by $Author: averbraeck $,
initial version Sep 5, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
Money(double value,
MoneyUnit unit)
Construct Money scalar.
|
Money(DoubleScalar.Rel<MoneyUnit> value)
Construct Money scalar.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
abs()
Set the value(s) to their absolute value.
|
Money |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
Money |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
Money |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
Money |
cbrt()
Set the value(s) to the(ir) cube root.
|
Money |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
Money |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
Money |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MoneyPerArea |
divideBy(Area v)
Calculate the division of Money and Area, which results in a MoneyPerArea scalar.
|
Money |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
MoneyPerEnergy |
divideBy(Energy v)
Calculate the division of Money and Energy, which results in a MoneyPerEnergy scalar.
|
MoneyPerLength |
divideBy(Length.Rel v)
Calculate the division of Money and Length, which results in a MoneyPerLength scalar.
|
MoneyPerMass |
divideBy(Mass v)
Calculate the division of Money and Mass, which results in a MoneyPerMass scalar.
|
Dimensionless.Rel |
divideBy(Money v)
Calculate the division of Money and Money, which results in a Dimensionless scalar.
|
MoneyPerTime |
divideBy(Time.Rel v)
Calculate the division of Money and Time, which results in a MoneyPerTime scalar.
|
MoneyPerVolume |
divideBy(Volume v)
Calculate the division of Money and Volume, which results in a MoneyPerVolume scalar.
|
Money |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
Money |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
Money |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
static Money |
interpolate(Money zero,
Money one,
double ratio)
Interpolate between two values.
|
Money |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
Money |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
Money |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
Money |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
Money |
minus(Money v)
Relative scalar minus Relative scalar = Relative scalar.
|
Money |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
MoneyPerTime |
multiplyBy(Frequency v)
Calculate the multiplication of Money and Frequency, which results in a MoneyPerTime scalar.
|
MoneyPerLength |
multiplyBy(LinearDensity v)
Calculate the multiplication of Money and LinearDensity, which results in a MoneyPerLength scalar.
|
Money |
plus(Money v)
Relative scalar plus Relative scalar = Relative scalar.
|
Money |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
Money |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
Money |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
Money |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
Money |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
Money |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
Money |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
Money |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
Money |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
Money |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
Money |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
compareTo, eq, ge, getSI, gt, le, lt, minus, ne, plusdivide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, hashCode, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, plus, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativebyteValue, shortValuepublic Money(double value,
MoneyUnit unit)
value - double valueunit - unit for the double valuepublic Money(DoubleScalar.Rel<MoneyUnit> value)
value - Scalar from which to construct this instancepublic static Money interpolate(Money zero, Money one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final Money abs()
abs in interface MathFunctions<DoubleScalar<MoneyUnit>>abs in class DoubleScalar.Rel<MoneyUnit>public final Money acos()
acos in interface MathFunctions<DoubleScalar<MoneyUnit>>acos in class DoubleScalar.Rel<MoneyUnit>public final Money asin()
asin in interface MathFunctions<DoubleScalar<MoneyUnit>>asin in class DoubleScalar.Rel<MoneyUnit>public final Money atan()
atan in interface MathFunctions<DoubleScalar<MoneyUnit>>atan in class DoubleScalar.Rel<MoneyUnit>public final Money cbrt()
cbrt in interface MathFunctions<DoubleScalar<MoneyUnit>>cbrt in class DoubleScalar.Rel<MoneyUnit>public final Money ceil()
ceil in interface MathFunctions<DoubleScalar<MoneyUnit>>ceil in class DoubleScalar.Rel<MoneyUnit>public final Money cos()
cos in interface MathFunctions<DoubleScalar<MoneyUnit>>cos in class DoubleScalar.Rel<MoneyUnit>public final Money cosh()
cosh in interface MathFunctions<DoubleScalar<MoneyUnit>>cosh in class DoubleScalar.Rel<MoneyUnit>public final Money exp()
exp in interface MathFunctions<DoubleScalar<MoneyUnit>>exp in class DoubleScalar.Rel<MoneyUnit>public final Money expm1()
expm1 in interface MathFunctions<DoubleScalar<MoneyUnit>>expm1 in class DoubleScalar.Rel<MoneyUnit>public final Money floor()
floor in interface MathFunctions<DoubleScalar<MoneyUnit>>floor in class DoubleScalar.Rel<MoneyUnit>public final Money log()
log in interface MathFunctions<DoubleScalar<MoneyUnit>>log in class DoubleScalar.Rel<MoneyUnit>public final Money log10()
log10 in interface MathFunctions<DoubleScalar<MoneyUnit>>log10 in class DoubleScalar.Rel<MoneyUnit>public final Money log1p()
log1p in interface MathFunctions<DoubleScalar<MoneyUnit>>log1p in class DoubleScalar.Rel<MoneyUnit>public final Money rint()
rint in interface MathFunctions<DoubleScalar<MoneyUnit>>rint in class DoubleScalar.Rel<MoneyUnit>public final Money round()
round in interface MathFunctions<DoubleScalar<MoneyUnit>>round in class DoubleScalar.Rel<MoneyUnit>public final Money signum()
signum in interface MathFunctions<DoubleScalar<MoneyUnit>>signum in class DoubleScalar.Rel<MoneyUnit>public final Money sin()
sin in interface MathFunctions<DoubleScalar<MoneyUnit>>sin in class DoubleScalar.Rel<MoneyUnit>public final Money sinh()
sinh in interface MathFunctions<DoubleScalar<MoneyUnit>>sinh in class DoubleScalar.Rel<MoneyUnit>public final Money sqrt()
sqrt in interface MathFunctions<DoubleScalar<MoneyUnit>>sqrt in class DoubleScalar.Rel<MoneyUnit>public final Money tan()
tan in interface MathFunctions<DoubleScalar<MoneyUnit>>tan in class DoubleScalar.Rel<MoneyUnit>public final Money tanh()
tanh in interface MathFunctions<DoubleScalar<MoneyUnit>>tanh in class DoubleScalar.Rel<MoneyUnit>public final Money inv()
inv in interface MathFunctions<DoubleScalar<MoneyUnit>>inv in class DoubleScalar.Rel<MoneyUnit>public final Money toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<MoneyUnit>>toDegrees in class DoubleScalar.Rel<MoneyUnit>public final Money toRadians()
toRadians in interface MathFunctions<DoubleScalar<MoneyUnit>>toRadians in class DoubleScalar.Rel<MoneyUnit>public final Money pow(double x)
pow in interface MathFunctions<DoubleScalar<MoneyUnit>>pow in class DoubleScalar.Rel<MoneyUnit>x - double; the value to use as the powerpublic final Money multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<MoneyUnit>>multiplyBy in class DoubleScalar.Rel<MoneyUnit>factor - double; the multiplierpublic final Money divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<MoneyUnit>>divideBy in class DoubleScalar.Rel<MoneyUnit>divisor - double; the divisorpublic final Money plus(Money v)
v - the value to addpublic final Money minus(Money v)
v - the value to subtractpublic final Dimensionless.Rel divideBy(Money v)
v - Money scalarpublic final MoneyPerArea divideBy(Area v)
v - Money scalarpublic final MoneyPerEnergy divideBy(Energy v)
v - Money scalarpublic final MoneyPerLength divideBy(Length.Rel v)
v - Money scalarpublic final MoneyPerLength multiplyBy(LinearDensity v)
v - Money scalarpublic final MoneyPerMass divideBy(Mass v)
v - Money scalarpublic final MoneyPerTime divideBy(Time.Rel v)
v - Money scalarpublic final MoneyPerTime multiplyBy(Frequency v)
v - Money scalarpublic final MoneyPerVolume divideBy(Volume v)
v - Money scalarCopyright © 2015 Delft University of Technology. All rights reserved.