public class FloatMoney extends FloatScalar.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
FloatScalar.Abs<U extends Unit<U>>, FloatScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
FloatMoney(double value,
MoneyUnit unit)
Construct FloatMoney scalar using a double value.
|
FloatMoney(float value,
MoneyUnit unit)
Construct FloatMoney scalar.
|
FloatMoney(FloatScalar.Rel<MoneyUnit> value)
Construct FloatMoney scalar.
|
| Modifier and Type | Method and Description |
|---|---|
FloatMoney |
abs()
Set the value(s) to their absolute value.
|
FloatMoney |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
FloatMoney |
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.
|
FloatMoney |
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.
|
FloatMoney |
cbrt()
Set the value(s) to the(ir) cube root.
|
FloatMoney |
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.
|
FloatMoney |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
FloatMoney |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
FloatMoney |
divideBy(double factor)
Divide scalar by a double factor.
|
FloatMoney |
divideBy(float divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
FloatMoneyPerArea |
divideBy(FloatArea v)
Calculate the division of FloatMoney and FloatArea, which results in a FloatMoneyPerArea scalar.
|
FloatMoneyPerEnergy |
divideBy(FloatEnergy v)
Calculate the division of FloatMoney and FloatEnergy, which results in a FloatMoneyPerEnergy scalar.
|
FloatMoneyPerLength |
divideBy(FloatLength.Rel v)
Calculate the division of FloatMoney and FloatLength, which results in a FloatMoneyPerLength scalar.
|
FloatMoneyPerMass |
divideBy(FloatMass v)
Calculate the division of FloatMoney and FloatMass, which results in a FloatMoneyPerMass scalar.
|
FloatDimensionless.Rel |
divideBy(FloatMoney v)
Calculate the division of FloatMoney and FloatMoney, which results in a FloatDimensionless scalar.
|
FloatMoneyPerTime |
divideBy(FloatTime.Rel v)
Calculate the division of FloatMoney and FloatTime, which results in a FloatMoneyPerTime scalar.
|
FloatMoneyPerVolume |
divideBy(FloatVolume v)
Calculate the division of FloatMoney and FloatVolume, which results in a FloatMoneyPerVolume scalar.
|
FloatMoney |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
FloatMoney |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
FloatMoney |
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 FloatMoney |
interpolate(FloatMoney zero,
FloatMoney one,
double ratio)
Interpolate between two values.
|
static FloatMoney |
interpolate(FloatMoney zero,
FloatMoney one,
float ratio)
Interpolate between two values.
|
FloatMoney |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
FloatMoney |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
FloatMoney |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
FloatMoney |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
FloatMoney |
minus(FloatMoney v)
Relative scalar minus Relative scalar = Relative scalar.
|
FloatMoney |
multiplyBy(double factor)
Multiply scalar with a double factor.
|
FloatMoney |
multiplyBy(float factor)
Scale the value(s) by a factor.
|
FloatMoneyPerTime |
multiplyBy(FloatFrequency v)
Calculate the multiplication of FloatMoney and FloatFrequency, which results in a FloatMoneyPerTime scalar.
|
FloatMoneyPerLength |
multiplyBy(FloatLinearDensity v)
Calculate the multiplication of FloatMoney and FloatLinearDensity, which results in a FloatMoneyPerLength scalar.
|
FloatMoney |
plus(FloatMoney v)
Relative scalar plus Relative scalar = Relative scalar.
|
FloatMoney |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
FloatMoney |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
FloatMoney |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
FloatMoney |
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.
|
FloatMoney |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
FloatMoney |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
FloatMoney |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
FloatMoney |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
FloatMoney |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
FloatMoney |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
FloatMoney |
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 FloatMoney(float value,
MoneyUnit unit)
value - float valueunit - unit for the float valuepublic FloatMoney(double value,
MoneyUnit unit)
value - double valueunit - unit for the valuepublic FloatMoney(FloatScalar.Rel<MoneyUnit> value)
value - Scalar from which to construct this instancepublic static FloatMoney interpolate(FloatMoney zero, FloatMoney one, float ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static FloatMoney interpolate(FloatMoney zero, FloatMoney one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final FloatMoney abs()
abs in interface MathFunctions<FloatScalar<MoneyUnit>>abs in class FloatScalar.Rel<MoneyUnit>public final FloatMoney acos()
acos in interface MathFunctions<FloatScalar<MoneyUnit>>acos in class FloatScalar.Rel<MoneyUnit>public final FloatMoney asin()
asin in interface MathFunctions<FloatScalar<MoneyUnit>>asin in class FloatScalar.Rel<MoneyUnit>public final FloatMoney atan()
atan in interface MathFunctions<FloatScalar<MoneyUnit>>atan in class FloatScalar.Rel<MoneyUnit>public final FloatMoney cbrt()
cbrt in interface MathFunctions<FloatScalar<MoneyUnit>>cbrt in class FloatScalar.Rel<MoneyUnit>public final FloatMoney ceil()
ceil in interface MathFunctions<FloatScalar<MoneyUnit>>ceil in class FloatScalar.Rel<MoneyUnit>public final FloatMoney cos()
cos in interface MathFunctions<FloatScalar<MoneyUnit>>cos in class FloatScalar.Rel<MoneyUnit>public final FloatMoney cosh()
cosh in interface MathFunctions<FloatScalar<MoneyUnit>>cosh in class FloatScalar.Rel<MoneyUnit>public final FloatMoney exp()
exp in interface MathFunctions<FloatScalar<MoneyUnit>>exp in class FloatScalar.Rel<MoneyUnit>public final FloatMoney expm1()
expm1 in interface MathFunctions<FloatScalar<MoneyUnit>>expm1 in class FloatScalar.Rel<MoneyUnit>public final FloatMoney floor()
floor in interface MathFunctions<FloatScalar<MoneyUnit>>floor in class FloatScalar.Rel<MoneyUnit>public final FloatMoney log()
log in interface MathFunctions<FloatScalar<MoneyUnit>>log in class FloatScalar.Rel<MoneyUnit>public final FloatMoney log10()
log10 in interface MathFunctions<FloatScalar<MoneyUnit>>log10 in class FloatScalar.Rel<MoneyUnit>public final FloatMoney log1p()
log1p in interface MathFunctions<FloatScalar<MoneyUnit>>log1p in class FloatScalar.Rel<MoneyUnit>public final FloatMoney rint()
rint in interface MathFunctions<FloatScalar<MoneyUnit>>rint in class FloatScalar.Rel<MoneyUnit>public final FloatMoney round()
round in interface MathFunctions<FloatScalar<MoneyUnit>>round in class FloatScalar.Rel<MoneyUnit>public final FloatMoney signum()
signum in interface MathFunctions<FloatScalar<MoneyUnit>>signum in class FloatScalar.Rel<MoneyUnit>public final FloatMoney sin()
sin in interface MathFunctions<FloatScalar<MoneyUnit>>sin in class FloatScalar.Rel<MoneyUnit>public final FloatMoney sinh()
sinh in interface MathFunctions<FloatScalar<MoneyUnit>>sinh in class FloatScalar.Rel<MoneyUnit>public final FloatMoney sqrt()
sqrt in interface MathFunctions<FloatScalar<MoneyUnit>>sqrt in class FloatScalar.Rel<MoneyUnit>public final FloatMoney tan()
tan in interface MathFunctions<FloatScalar<MoneyUnit>>tan in class FloatScalar.Rel<MoneyUnit>public final FloatMoney tanh()
tanh in interface MathFunctions<FloatScalar<MoneyUnit>>tanh in class FloatScalar.Rel<MoneyUnit>public final FloatMoney inv()
inv in interface MathFunctions<FloatScalar<MoneyUnit>>inv in class FloatScalar.Rel<MoneyUnit>public final FloatMoney toDegrees()
toDegrees in interface MathFunctions<FloatScalar<MoneyUnit>>toDegrees in class FloatScalar.Rel<MoneyUnit>public final FloatMoney toRadians()
toRadians in interface MathFunctions<FloatScalar<MoneyUnit>>toRadians in class FloatScalar.Rel<MoneyUnit>public final FloatMoney pow(double x)
pow in interface MathFunctions<FloatScalar<MoneyUnit>>pow in class FloatScalar.Rel<MoneyUnit>x - double; the value to use as the powerpublic final FloatMoney multiplyBy(float factor)
multiplyBy in interface FloatMathFunctions<FloatScalar<MoneyUnit>>multiplyBy in class FloatScalar.Rel<MoneyUnit>factor - float; the multiplierpublic final FloatMoney multiplyBy(double factor)
factor - the factor to multiply withpublic final FloatMoney divideBy(float divisor)
divideBy in interface FloatMathFunctions<FloatScalar<MoneyUnit>>divideBy in class FloatScalar.Rel<MoneyUnit>divisor - float; the divisorpublic final FloatMoney divideBy(double factor)
factor - the factor to divide bypublic final FloatMoney plus(FloatMoney v)
v - the value to addpublic final FloatMoney minus(FloatMoney v)
v - the value to subtractpublic final FloatDimensionless.Rel divideBy(FloatMoney v)
v - FloatMoney scalarpublic final FloatMoneyPerArea divideBy(FloatArea v)
v - FloatMoney scalarpublic final FloatMoneyPerEnergy divideBy(FloatEnergy v)
v - FloatMoney scalarpublic final FloatMoneyPerLength divideBy(FloatLength.Rel v)
v - FloatMoney scalarpublic final FloatMoneyPerLength multiplyBy(FloatLinearDensity v)
v - FloatMoney scalarpublic final FloatMoneyPerMass divideBy(FloatMass v)
v - FloatMoney scalarpublic final FloatMoneyPerTime divideBy(FloatTime.Rel v)
v - FloatMoney scalarpublic final FloatMoneyPerTime multiplyBy(FloatFrequency v)
v - FloatMoney scalarpublic final FloatMoneyPerVolume divideBy(FloatVolume v)
v - FloatMoney scalarCopyright © 2015 Delft University of Technology. All rights reserved.