Re: Converting string equation to int
Re: Converting string equation to int
- Subject: Re: Converting string equation to int
- From: Sherm Pendley <email@hidden>
- Date: Sat, 12 Feb 2005 10:41:43 -0500
On Feb 11, 2005, at 7:54 PM, Christopher Drum wrote:
Does anyone know a Cocoa method that will accept an equation as an
NSString and evaluate it to achieve an int (or long, or whatever).
You could use NSTask to pipe it to bc and get back the results. "man
bc" for details.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden