To run the example project, clone the repo, and run pod install
from the Example directory first.
GLArithmetic is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GLArithmetic'
guolei, guolei_coder@126.com
GLArithmetic is available under the MIT license. See the LICENSE file for more info.
四则运算 随机表达式生成验证此代码结果正确
//计算分数表达式
//errorString:正则判断表达式是否合法,不合法errorString不为nil
+ (NSString*)calculateFraction:(NSString *)infixexp errorString:(NSString **)errorString;
//分数转小数,拿到+ (NSString*)calculateFraction:(NSString *)infixexp errorString:(NSString **)errorString;
//计算结果,转化为小数
+ (NSString*)fractionTranslatePoint:(NSString *)fraction;