Hey guys,
i want to display two digits after decimal point like below, currently it is showing four digits.
currently i am getting like this
- 10.99 * 5.00 = 54.9500
- 10.99 * 5.45 = 59.8955
i want like this
- 10.99 * 5.00 = 54.95
- 10.99 * 5.45 = 59.8955 (round it and display only 2 digit)
my code like this
def totalPrice = WebUI.concatenate([
Currency.getInstance(productResult.getObject("ISOCurrencyCode")).getSymbol(),
productResult.getObject("Quantity") * productResult.getObject("PriceListPrice")] as String[], FailureHandling.STOP_ON_FAILURE)