|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.sys.Double
| Field Summary | |
static int |
AT_LEAST_ONE_DECIMAL
Option for toString(). |
static Double |
d1
Convenience temporary variable. |
static Double |
d2
Convenience temporary variable. |
static Double |
d3
Convenience temporary variable. |
int |
decimalPlaces
This sets the default number of decimal places for this Double when a toString() is done. |
static int |
EXP_NOTATION
Option for toString(). |
static int |
FREE_DECIMAL
Option for toString(). |
static int |
INFINITY
|
static int |
NAN
|
static int |
NEGATIVE
|
static int |
NEGATIVE_INFINITY
|
static int |
NO_EXP_NOTATION
Option for toString(). |
static int |
POSITIVE
|
static int |
POSITIVE_INFINITY
|
static int |
TRUNCATE
Option for toString(). |
static int |
VALID
|
double |
value
|
static int |
ZERO
|
static int |
ZERO_FILL
Option for toString(). |
| Constructor Summary | |
Double()
|
|
| Method Summary | |
int |
compareTo(Object other)
Compare this object with another. |
void |
copyFrom(Object other)
This stores the bit-wise representation of the double in the Long value. |
Double |
fromJavaWrapper(Object javaWrapper)
Place the value in the standard java Wrapper (e.g. |
void |
fromString(String value)
|
boolean |
is(int special)
This checks to see if the value of the double is one of the special values (POSITIVE_INFINITY, NEGATIVE_INFINITY, INFINITY(either), NAN) or if it is NEGATIVE, POSITIVE or ZERO. |
static boolean |
isValid(double value)
Returns true if the number is NOT NaN and is NOT an INFINITY value. |
static void |
matrixFunction(double[] doubleMatrix,
int startIndex,
int rows,
int columns,
MathFunction[] functions,
double[] destDoubleArray,
int destStartIndex)
Load the values in the array as bit values from the source byte array. |
Double |
set(double d)
|
Double |
set(Double d)
|
Double |
setSpecial(int special)
This sets the double to one of the following values: POSITIVE_INFINITY(same as INFINITY), NEGATIVE_INFINITY NAN, NEGATIVE (-1), POSITIVE (+1), ZERO. |
String |
toString()
Return a String representation of this object. |
String |
toString(int length,
int decimalLength,
int options)
This prints out the value in a particular format. |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode |
| Field Detail |
public double value
public int decimalPlaces
public static final Double d1
public static final Double d2
public static final Double d3
public static final int ZERO_FILL
public static final int TRUNCATE
public static final int FREE_DECIMAL
public static final int EXP_NOTATION
public static final int NO_EXP_NOTATION
public static final int AT_LEAST_ONE_DECIMAL
public static final int NEGATIVE
public static final int POSITIVE
public static final int ZERO
public static final int POSITIVE_INFINITY
public static final int NEGATIVE_INFINITY
public static final int INFINITY
public static final int NAN
public static final int VALID
| Constructor Detail |
public Double()
| Method Detail |
public Double set(double d)
public Double set(Double d)
public String toString(int length,
int decimalLength,
int options)
length - The total length of the output string. Set this to zero to specify no maximum length constraint.decimalLength - the number of decimal places to output. If FREE_DECIMAL is specified as an option, then this will specify the
MAXIMUM number of decimal digits to display - it may actually display less. If FREE_DECIMAL is specified AND decimal places is zero, then the VM will decide how many
decimal places to display.options - Must be the bitwise ORing of:
public String toString()
Object
toString in interface StringabletoString in class Objectpublic void fromString(String value)
fromString in interface Stringablepublic int compareTo(Object other)
Comparable
compareTo in interface ComparablecompareTo in class DataObjectpublic static boolean isValid(double value)
public boolean is(int special)
public Double setSpecial(int special)
public static void matrixFunction(double[] doubleMatrix,
int startIndex,
int rows,
int columns,
MathFunction[] functions,
double[] destDoubleArray,
int destStartIndex)
public void copyFrom(Object other)
copyFrom in interface DataUnitcopyFrom in class DataObject
public Double fromJavaWrapper(Object javaWrapper)
throws IllegalArgumentException
javaWrapper - one of the java.lang primitive wrapper values representing
a value that may be converted into a double value.
IllegalArgumentException - if the javaWrapper parameter is one of the illegal types.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||