Skip to content

GreyLove/GLArithmetic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

51ea262 · Jun 26, 2019

History

24 Commits
Jul 9, 2018
May 7, 2018
Mar 17, 2018
Mar 17, 2018
Jul 9, 2018
Jul 9, 2018
Jun 26, 2019
Mar 17, 2018

Repository files navigation

GLArithmetic

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

GLArithmetic is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'GLArithmetic'

Author

guolei, guolei_coder@126.com

License

GLArithmetic is available under the MIT license. See the LICENSE file for more info.

Arithmetic

四则运算 随机表达式生成验证此代码结果正确

//计算分数表达式
//errorString:正则判断表达式是否合法,不合法errorString不为nil
+ (NSString*)calculateFraction:(NSString *)infixexp errorString:(NSString **)errorString;
//分数转小数,拿到+ (NSString*)calculateFraction:(NSString *)infixexp errorString:(NSString **)errorString; 
//计算结果,转化为小数
+ (NSString*)fractionTranslatePoint:(NSString *)fraction;

文章:https://www.jianshu.com/p/329b4918fc19

About

四则运算

Resources

License

Stars

Watchers

Forks

Packages

No packages published