Latest 1.0.1
Homepage https://github.com/nhfc99/NHFNumberUnit
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

介绍

对价格等参数进行格式化处理操作

安装

  • pod ‘NHFNumberUnit’
  • 手动下载然后将文件夹拖至工程中即可

使用方法

/**

  • 默认保留2位小数
  • @param data
  • @return
    */

    • (NSString *)formatFloat:(CGFloat)data;

/**

  • 默认保留3为小数
  • @param data
  • @return
    */

    • (NSString *)formatFloatThree:(CGFloat)data;

Latest podspec

{
    "name": "NHFNumberUnit",
    "version": "1.0.1",
    "summary": "u5bf9u4ef7u683cu7b49u53c2u6570u8fdbu884cu683cu5f0fu5316u5904u7406u64cdu4f5c",
    "homepage": "https://github.com/nhfc99/NHFNumberUnit",
    "license": "MIT",
    "authors": {
        "u725bu5b8fu98de": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nhfc99/NHFNumberUnit.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Number+Unit/*.{h,m}",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This