I have a problem with adding more than one number in calculator..the problem is while adding 1+2 answer is 3 and when i do 1+2+3 the answer is 5 and not 6 why so.. ihave tried different method of creating array for storing the value but nothing seems to work and i am getting a error while i type Value1 <> " THen. i get the error as conversion of string to type double is not valid.whereas i have already declared the Value1 As Double...please help
Arun_14
0
Newbie Poster
Recommended Answers
Jump to PostHi Arun welcome to DaniWeb.
Posting some relevant code would help us solve your problem.
Jump to PostFor the error in conversion, that's means maybe the imputed data are taken as string or the problem is that you do not take care of the operations (signs {+,-,/,*}).
Coming to your actual problem of not getting the desired answer, this can be coursed by you not taking care …
All 7 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Mr.M
58
Future Programmers
Minimalist
96
Posting Pro
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Arun_14
0
Newbie Poster
Mr.M
58
Future Programmers
Santanu.Das
125
Santanu Das
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.