Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2011, 08:27 AM
sharlomixa sharlomixa is offline
Junior Member
 
Join Date: Jun 2011
Posts: 3
Default HELP!!! Delphi calculator!

I have some problems with my delphi calculator, with parentheses, for example, I wish I could have something like this, when I enter 6*100+3*10+7 to get result 637, but when I enter (100+2)*2 not to get 104, but to get 204. PLEASE HELP ME!

Thank you
Reply With Quote
  #2  
Old 06-12-2011, 01:57 PM
Frag_68 Frag_68 is offline
Senior Member
 
Join Date: May 2008
Posts: 146
Default

I'm not sure I understand your problem.

Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
  button1.Caption := inttostr((100+2)*2);
end;
Gives 204, which is correct.
Reply With Quote
  #3  
Old 06-12-2011, 02:41 PM
sharlomixa sharlomixa is offline
Junior Member
 
Join Date: Jun 2011
Posts: 3
Default

Actually I just need Delphi calculator which works with parentheses and 4 operations(*,+,-,/)! So if you have example of that one, tell me!
Reply With Quote
  #4  
Old 06-12-2011, 03:13 PM
Frag_68 Frag_68 is offline
Senior Member
 
Join Date: May 2008
Posts: 146
Default

http://lmgtfy.com/?q=delphi+calculator&l=1
Reply With Quote
  #5  
Old 06-12-2011, 05:06 PM
sharlomixa sharlomixa is offline
Junior Member
 
Join Date: Jun 2011
Posts: 3
Default

Yeah, but for example, when I enter this one 6*100+3*10, i get (6*100+3)*10, so it doesnt work for that one...
Reply With Quote
  #6  
Old 06-12-2011, 05:15 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 4,773
Default

Please check your email.
__________________
Regards,
Abdulaziz Jasser
Reply With Quote
  #7  
Old 07-09-2011, 08:31 PM
Donovan Donovan is offline
Senior Member
 
Join Date: Jan 2011
Posts: 150
Send a message via Skype™ to Donovan
Default

lol love that link Frag_68 how'd you do that?
Reply With Quote
  #8  
Old 07-10-2011, 02:33 AM
Frag_68 Frag_68 is offline
Senior Member
 
Join Date: May 2008
Posts: 146
Default

Quote:
Originally Posted by Donovan View Post
lol love that link Frag_68 how'd you do that?
Just go to http://lmgtfy.com and type the search just like you normally would in Google. Then click whichever button you want and it'll give you a link. I used the "I feel lucky" one so it took you to the first search result.

Reply With Quote
Reply

Tags
calculator, parentheses

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 12:18 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.