Package de.bytestore.hostinger.handler
Class NumberHandler
java.lang.Object
de.bytestore.hostinger.handler.NumberHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatMoney(BigDecimal decimalIO) Formats a decimal number as a money string with two decimal places.static StringformatMoneyString(double valueIO) Formats a decimal number as a money string with two decimal places.
-
Constructor Details
-
NumberHandler
public NumberHandler()
-
-
Method Details
-
formatMoneyString
Formats a decimal number as a money string with two decimal places.- Parameters:
valueIO- the decimal value to be formatted- Returns:
- the formatted money string
-
formatMoney
Formats a decimal number as a money string with two decimal places.- Parameters:
decimalIO- the decimal value to be formatted- Returns:
- the formatted money string
-