Skip to content
Dave DeLong edited this page Sep 20, 2016 · 17 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.

Requirements

  • Xcode 8
  • Mac OS X 10.9+
  • iOS 8.0+
  • watchOS 2.0+