|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.util.LongDouble
public class LongDouble
Double implementation on an integer.
NaN, Inf, and Exponential representation (e.g. 2e-4) are not supported
Field Summary | |
---|---|
static int |
maxDecimalPlaces
|
Constructor Summary | |
---|---|
LongDouble(int decimalPlaces)
Constructor |
|
LongDouble(long init,
int decimalPlaces)
Constructor |
|
LongDouble(java.lang.String str,
int decimalPlaces)
Constructor |
Method Summary | |
---|---|
LongDouble |
add(int i)
|
LongDouble |
add(LongDouble ld)
|
int |
compareTo(int i)
|
int |
compareTo(LongDouble ld)
|
LongDouble |
divide(int i)
|
LongDouble |
divide(LongDouble ld)
|
boolean |
equals(LongDouble ld)
|
boolean |
equals(java.lang.Object o)
|
boolean |
equalsZero()
|
int |
getIntValue()
|
static int |
getLastDigit(long value)
Returns the last digit of the passed value. |
int |
hashCode()
|
int |
idiv(int i)
|
int |
idiv(LongDouble ld)
|
LongDouble |
mod(int i)
|
LongDouble |
mod(LongDouble ld)
|
LongDouble |
multiply(int i)
|
LongDouble |
multiply(LongDouble ld)
|
LongDouble |
negate()
|
LongDouble |
subtract(int i)
|
LongDouble |
subtract(LongDouble ld)
|
java.lang.String |
toString()
|
boolean |
unequals(LongDouble ld)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int maxDecimalPlaces
Constructor Detail |
---|
public LongDouble(int decimalPlaces)
decimalPlaces
- public LongDouble(java.lang.String str, int decimalPlaces)
str
- tries to parse this stringdecimalPlaces
- public LongDouble(long init, int decimalPlaces)
init
- initial value (only integer)decimalPlaces
- Method Detail |
---|
public static int getLastDigit(long value)
value
-
public boolean equalsZero()
public LongDouble add(LongDouble ld)
public LongDouble add(int i)
public LongDouble subtract(LongDouble ld)
public LongDouble subtract(int i)
public LongDouble multiply(LongDouble ld)
public LongDouble multiply(int i)
public LongDouble divide(LongDouble ld) throws MXQueryException
MXQueryException
public LongDouble divide(int i)
public LongDouble mod(LongDouble ld)
public LongDouble mod(int i)
public int idiv(LongDouble ld) throws MXQueryException
MXQueryException
public int idiv(int i)
public LongDouble negate()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(LongDouble ld)
public boolean unequals(LongDouble ld)
public int compareTo(LongDouble ld)
public int compareTo(int i)
public int getIntValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |