Package pos_system.util
Class Util
java.lang.Object
pos_system.util.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final booleanhasCorrectFormatting(String format) static final doubleroundPrice(double price) Rundet den Preis auf zwei Kommastellen entsprechend gängiger Rundunskonventionen.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
roundPrice
public static final double roundPrice(double price) Rundet den Preis auf zwei Kommastellen entsprechend gängiger Rundunskonventionen.Beispiel:
roundPrice(1.222) = 1.22 roundPrice(1.227) = 1.23- Parameters:
price-- Returns:
- Der auf zwei Kommastellen gerundete Preis.
-
hasCorrectFormatting
-