public final class WideDecimal extends Number implements Comparable<WideDecimal>
WideDecimal
class contains a set of methods to work with
floating-point numbers packed into long
primitive type.
Also, it can be used to wrap a single value in an object with interface
like that of the Number
class.Modifier and Type | Field and Description |
---|---|
static long |
NaN |
static String |
NAN_STRING |
static long |
NEGATIVE_INFINITY |
static String |
NEGATIVE_INFINITY_STRING |
static long |
POSITIVE_INFINITY |
static String |
POSITIVE_INFINITY_STRING |
Constructor and Description |
---|
WideDecimal(long wide) |
WideDecimal(String s) |
Modifier and Type | Method and Description |
---|---|
static long |
abs(int wide) |
static StringBuilder |
appendTo(StringBuilder sb,
long wide) |
byte |
byteValue() |
static int |
compare(long w1,
long w2) |
int |
compareTo(WideDecimal other) |
static long |
composeWide(double value) |
static long |
composeWide(long significand,
int scale) |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
static int |
getScale(long wide) |
static long |
getSignificand(long wide) |
int |
hashCode() |
int |
intValue() |
static boolean |
isFinite(long wide) |
boolean |
isInfinite() |
static boolean |
isInfinite(long wide) |
boolean |
isNaN() |
static boolean |
isNaN(long wide) |
long |
longValue() |
static void |
main(String[] args) |
static long |
max(long w1,
long w2) |
static long |
min(long w1,
long w2) |
static long |
neg(long wide) |
static long |
parseWide(String s) |
short |
shortValue() |
static int |
signum(long wide) |
static long |
sum(long w1,
long w2) |
static double |
toDouble(long wide) |
String |
toString() |
static String |
toString(long wide) |
public static final long NaN
public static final long POSITIVE_INFINITY
public static final long NEGATIVE_INFINITY
public static final String NAN_STRING
public static final String POSITIVE_INFINITY_STRING
public static final String NEGATIVE_INFINITY_STRING
public WideDecimal(long wide)
public WideDecimal(String s) throws NumberFormatException
NumberFormatException
public static String toString(long wide)
public static StringBuilder appendTo(StringBuilder sb, long wide)
public static long parseWide(String s) throws NumberFormatException
NumberFormatException
public static double toDouble(long wide)
public static long composeWide(double value)
public static long composeWide(long significand, int scale)
public static long getSignificand(long wide)
public static int getScale(long wide)
public static boolean isNaN(long wide)
public static boolean isInfinite(long wide)
public static boolean isFinite(long wide)
public static int signum(long wide)
public static long neg(long wide)
public static long abs(int wide)
public static long sum(long w1, long w2)
public static long max(long w1, long w2)
public static long min(long w1, long w2)
public static int compare(long w1, long w2)
public boolean isNaN()
public boolean isInfinite()
public short shortValue()
shortValue
in class Number
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int compareTo(WideDecimal other)
compareTo
in interface Comparable<WideDecimal>
public static void main(String[] args)
Copyright © 2002-2018 Devexperts LLC. All Rights Reserved.