Latest 0.1.1
Homepage https://github.com/YHQiu/NSNumberOperation
License MIT
Platforms ios 8.0
Frameworks Foundation
Authors

NSNumberOperation
iOS 精度处理 工具类
iOS 高精度计算库,适用于金融类App:【精度处理】,【精度保留】,等场景;【精度丢失】,【精度损失】,等问题的解决;可自定义:四舍五入、向下取整;
是我自己封装的一个 NSNumber运算 库,适用于金融类APP等对计算精度要求较高的场合,采用线性运算,代码流式调用,不支持运算优先级
(num1 + num2 – num3)*num4/num5;

N(num1).add(num2).sub(num3).mul(num4).div(num5).scale2();

How to use it ?

edite your podfile

pod ‘NSNumberOperation’

and run pod install

Latest podspec

{
    "name": "NSNumberOperation",
    "version": "0.1.1",
    "summary": "NSNumberOperation is a help code with science calculate",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/YHQiu/NSNumberOperation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/YHQiu/NSNumberOperation.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "NSNumberOperation/NumberOperation/**/*.{h,m,mm}",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This