Is it possible to parse BigDecimal from a textfield ? I have seen some code where they parse bigdecimal from strings. But is it also possible to use this on textfield. I have worked out some code to make it work. But i have no idea if i should do it this way.
Float price = Float.parseFloat(textFieldInvoiceServicePrice.getText());
String servicetext = textFieldInvoiceService.getText();
BigDecimal priceExcl= BigDecimal.valueOf(price);