Class LexoDecimal
java.lang.Object
com.atlassian.greenhopper.model.lexorank.LexoDecimal
- All Implemented Interfaces:
Comparable<LexoDecimal>
Represents a decimal with a configurable numerical system.
Provides several arithmetic operations and convenience emthods to make it easier to do calculations.
-
Method Summary
Modifier and TypeMethodDescriptionadd
(LexoDecimal other) ceil()
int
boolean
floor()
format()
static LexoDecimal
from
(LexoInteger integer) static LexoDecimal
fromInt
(int value, LexoNumeralSystem system) getMag()
int
int
getScale()
static LexoDecimal
half
(LexoNumeralSystem sys) int
hashCode()
boolean
isExact()
static LexoDecimal
make
(LexoInteger integer, int sig) multiply
(LexoDecimal other) static LexoDecimal
parse
(String str, LexoNumeralSystem system) setScale
(int nsig) setScale
(int nsig, boolean ceiling) subtract
(LexoDecimal other) toString()
-
Method Details
-
half
-
parse
-
from
-
make
-
fromInt
-
getSystem
-
getOrderOfMagnitude
public int getOrderOfMagnitude() -
add
-
subtract
-
multiply
-
floor
-
ceil
-
isExact
public boolean isExact() -
getMag
-
getScale
public int getScale() -
setScale
-
setScale
-
compareTo
- Specified by:
compareTo
in interfaceComparable<LexoDecimal>
-
format
-
equals
-
hashCode
public int hashCode() -
toString
-