want to take a variable in one web page in the string mode and transform it to usable variable and make a calculation is mind add taxes to this variable and verified the results please
If you plan on doing calculations with non-integer numbers (especially when dealing with money), you should convert to BigDecimal:
BigDecimal price = new BigDecimal(“9.99”) BigDecimal tax = new BigDecimal(“0.30”) BigDecimal total = price.add(tax)
thanks for your answer but : i want to open this web take the number and make thj calculation for found the taxe please
I answered your original question assuming that you already retrieved the values that you wanted from the web page. Your question was how to convert those values to variables which you could perform arithmetic on. If you are having trouble getting the values from the web page, you should post a different question.