Class Util

java.lang.Object
pos_system.util.Util

public final class Util extends Object
  • 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

      public static final boolean hasCorrectFormatting(String format)