public abstract class Number extends EvaluableTerm
Modifier and Type | Field and Description |
---|---|
static double |
MARGIN |
Modifier | Constructor and Description |
---|---|
protected |
Number() |
Modifier and Type | Method and Description |
---|---|
static int |
compareDoubleValues(Number one,
Number two) |
static Number |
create(String s) |
abstract double |
doubleValue()
Returns the value of the number as double
|
abstract float |
floatValue()
Returns the value of the number as float
|
static Number |
getIntegerNumber(long num) |
abstract int |
intValue()
Returns the value of the number as int
|
abstract long |
longValue()
Returns the value of the number as long
|
String |
toStringSmall() |
public static final double MARGIN
public abstract int intValue()
public abstract float floatValue()
public abstract long longValue()
public abstract double doubleValue()
public static int compareDoubleValues(Number one, Number two)
public static Number create(String s) throws NumberFormatException
NumberFormatException
public static Number getIntegerNumber(long num)
public String toStringSmall()
toStringSmall
in class Term
Copyright © 2020–2024 Prolobjectlink Project. All rights reserved.