public class Festkommazahl extends Number implements Comparable<Festkommazahl>
| Modifier and Type | Field and Description |
|---|---|
static Festkommazahl |
EINS
Repräsentiert 1 als Festkommazahl.
|
static Festkommazahl |
NULL
Repräsentiert 0 als Festkommazahl.
|
| Constructor and Description |
|---|
Festkommazahl(double wert)
Konstruiert eine Festkommazahl mit dem angegebenen Wert und dem
Skalierungsfaktor 1.
|
Festkommazahl(double wert,
float skalierung)
Konstruiert eine Festkommazahl mit dem angegebenen Wert und
Skalierungsfaktor.
|
Festkommazahl(double wert,
int stellen)
Konstruiert eine Festkommazahl mit dem angegebenen Wert und der genannten
Anzahl Dezimalstellen.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Festkommazahl zahl) |
double |
doubleValue() |
float |
floatValue() |
int |
intValue() |
long |
longValue() |
byteValue, shortValuepublic static final Festkommazahl NULL
public static final Festkommazahl EINS
public Festkommazahl(double wert)
wert - Der skalierte Wert der neuen Festkommzahlpublic Festkommazahl(double wert,
float skalierung)
wert - Der skalierte Wert der neuen Festkommzahlskalierung - Faktor mit dem der Wert skaliert wirdpublic Festkommazahl(double wert,
int stellen)
wert - Der skalierte Wert der neuen Festkommzahlstellen - Anzahl von Dezimalstellen um die der Wert skaliert werden
soll. Eine Zahl kleiner 0 entspricht dabei Kommastellen und
eine Zahl größer 0 entspricht Zehnerpotenzen.public int compareTo(Festkommazahl zahl)
compareTo in interface Comparable<Festkommazahl>public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class NumberCopyright © 2017 BitCtrl Systems GmbH. All rights reserved.