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