|
sharkysoft.com | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sharkysoft.math.MantissaExponent
Real value in scientific notation.
Details: A MantissaExponent represents the base 10
"scientific notation" of a real value. Instances of this class are returned
exclusively by MathToolbox.toScientificNotation.
| Field Summary | |
protected int |
mnExponent
Exponent. |
protected java.math.BigDecimal |
mpMantissa
Mantissa. |
static int |
NAN
Exponent value for NaN. |
static int |
NEG_INF
Exponent value for NaN. |
static int |
POS_INF
Exponent value for NaN. |
| Method Summary | |
int |
getExponent()
Retrieves Exponent property. |
java.math.BigDecimal |
getMantissa()
Retrieves Mantissa property. |
java.lang.String |
toString()
Generates scientific notation string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NAN
Details: If getMantissa() for an instance of
MantissaExponent returns null and
getExponent() for the same instance returns NAN,
then the instance represents the NaN value.
public static final int NEG_INF
Details: If getMantissa() for an instance of
MantissaExponent returns null and
getExponent() for the same instance returns NEG_INF,
then the instance represents negative infinity.
public static final int POS_INF
Details: If getMantissa() for an instance of
MantissaExponent returns null and
getExponent() for the same instance returns
POS_INF, then the instance represents positive infinity.
protected final java.math.BigDecimal mpMantissa
Details: Property Mantissa is the mantissa part of
the scientific notation.
getMantissa()protected final int mnExponent
Details: Property Exponent is the exponent part of
the scientific notation.
getExponent()| Method Detail |
public java.math.BigDecimal getMantissa()
mpMantissapublic int getExponent()
mnExponentpublic java.lang.String toString()
Details: toString renders this real value to a
string in scientific notation, using the format "Mantissa*10^Exponent".
If this value is not rational (i.e., NaN or Infinite), then this method
returns the same string as Float.toString(float) would for
these special values.
|
sharkysoft.com | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997-2004 Sharkysoft (sharkysoft.com). All rights reserved.