Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculator Help
#2
Well, it looks like what your program is doing is turning one of the 12.5's into an integer, which cannot contain a decimal. So it may be turning
12.5 + 12.5 = 24.5
Into
12.5 + 12 = 24.5.

So, You are going to need to check the following line of code:
Code:
Answer = Number + Val(txtMain.Text)

To see if either Answer, Number, Or Val return integer variables, and if they do, they need to be changed to double variables.
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Calculator Help - by Vinwarez - 03-12-2012, 12:02 PM
Re: Calculator Help - by brandonio21_phpbb3_import2 - 03-12-2012, 03:36 PM
Re: Calculator Help - by Vinwarez - 03-12-2012, 10:03 PM
Re: Calculator Help - by Vinwarez - 03-13-2012, 10:48 PM
Re: Calculator Help - by Vinwarez - 03-17-2012, 04:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I need help making a calculator like a windows calculator Xandereliteinsight 4 16,408 07-24-2012, 07:53 AM
Last Post: Moldraxian

Forum Jump:


Users browsing this thread: 1 Guest(s)