public enum Precision extends Enum<Precision>
Precision.
| Enum Constant and Description |
|---|
HUNDRED_MILLIONS |
HUNDRED_MILLIONTHS |
HUNDRED_THOUSANDS |
HUNDRED_THOUSANDTHS |
HUNDREDS |
HUNDREDTHS |
MILLIONS |
MILLIONTHS |
TEN_MILLIONS |
TEN_MILLIONTHS |
TEN_THOUSANDS |
TEN_THOUSANDTHS |
TENS |
TENTHS |
THOUSANDS |
THOUSANDTHS |
UNITS |
| Modifier and Type | Field and Description |
|---|---|
static double |
HALF
HALF
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateDoubleFromIntegerMantissa(long aValue)
calculateDouble.
|
double |
calculateIntegerMantissa(double aValue)
calculateIntegerMantissa.
|
int |
getNbDigit()
getNbDigit.
|
double |
getPrecision()
getPrecision.
|
static Precision |
valueOf(double aPrecision)
getPrecision.
|
static Precision |
valueOf(int nbDigit)
getPrecision.
|
static Precision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Precision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Precision UNITS
public static final Precision TENTHS
public static final Precision HUNDREDTHS
public static final Precision THOUSANDTHS
public static final Precision TEN_THOUSANDTHS
public static final Precision HUNDRED_THOUSANDTHS
public static final Precision MILLIONTHS
public static final Precision TEN_MILLIONTHS
public static final Precision HUNDRED_MILLIONTHS
public static final Precision TENS
public static final Precision HUNDREDS
public static final Precision THOUSANDS
public static final Precision TEN_THOUSANDS
public static final Precision HUNDRED_THOUSANDS
public static final Precision MILLIONS
public static final Precision TEN_MILLIONS
public static final Precision HUNDRED_MILLIONS
public static final double HALF
public static Precision[] values()
for (Precision c : Precision.values()) System.out.println(c);
public static Precision valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic final double calculateIntegerMantissa(double aValue)
aValue - public final double calculateDoubleFromIntegerMantissa(long aValue)
aValue - public final int getNbDigit()
public final double getPrecision()
public static Precision valueOf(int nbDigit)
nbDigit - public static final Precision valueOf(double aPrecision)
aPrecision - Copyright © 2012-2013 hermod. All Rights Reserved.