Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Dave DeLong edited this page · 16 revisions

DDMathParser makes it easy to parse a String and evaluate it as a mathematical expression.

While NSExpression and GCMathPaser can satisfy simple needs, they are comparatively limited. They do not support some of the key features of DDMathParser, such as:

  • accessing intermediate representations
  • defining custom functions
  • adding custom operators
  • adding new ways to recognize existing operators
  • overriding built-in functions
  • recognizing localized numbers
  • associating parsed expressions back to the original source string
  • recognizing unicode characters such as ² or ½

DDMathParser gives you all of these things and more.


  • Xcode 7
  • Mac OS X 10.9+
  • iOS 8.0+
  • watchOS 2.0+
Something went wrong with that request. Please try again.