Howdy guys
need help changing , from string to a big decimal for my addition method in my calculator , i understand the problem but not the solution . Any help would be great, thanks.

 public void add() 
         BigDecimal oneNumber = model.getDisplay();
         BigDecimal twoNumber = model.getDisplay();
         BigDecimal result = oneNumber.add(twoNumber);

4 Years
Discussion Span
Last Post by NormR1

Congratulations! You're no longer a DaniWeb newbie.<br /> <br />
Your DaniWeb account has just been upgraded from newbie status and now you have the ability to take advantage of everything the community has to offer.<br /> <br />
You can now enjoy an advertisement-free DaniWeb by ticking the checkbox to Disable Ads in your profile. You will no longer have to fill out the human verification check when you post. You can also now send unlimited private messages, contribute new code snippets, and tag articles with never-before-used tags.


i understand the problem

Could you explain what the problem is? Post the full text of any error messages.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.