The Daily Click ::. Forums ::. Klik Coding Help ::. Calculation
 

Post Reply  Post Oekaki 
 

Posted By Message

Aptennap



Registered
  23/04/2004
Points
  916
4th April, 2009 at 20:14:50 -

I need a function that gets the final anwser from a calculation. Is there an extension that can do this? For example:
input(string):2+2
output(value):4
2*3->6
(2+4)*3->18

 
Oh sweet mary.

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
4th April, 2009 at 20:35:45 -

no. not that i'm aware of. youd need to code something with the string parser. maybe by way of pushing the tokens to a stack and doing calculations based on what the token is as you pop them back out.

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
4th April, 2009 at 20:45:41 -

bleh I was afraid I had to do that

 
Oh sweet mary.

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
4th April, 2009 at 20:52:34 -

deadman dines may be able to give you some guidance as he's working on his expression editor plus.

similar?

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
4th April, 2009 at 20:54:30 -

I found the Expression Evaluator Object, it seems to be exactly what I need...

 
Oh sweet mary.

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
4th April, 2009 at 20:55:25 -

fantastic. i dont (edit: hardly use) use expressions so i was unaware

good luck

Edited by Cecilectomy

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
4th April, 2009 at 22:22:22 -

Thank you word

 
Oh sweet mary.
   

Post Reply



 



Advertisement

Worth A Click