NHFNumberUnit 1.0.5× TestsTested ✗ LangLanguage Obj-CObjective C License MIT ReleasedLast Release Oct 2017Maintained by 牛宏飞.Installation Guide×Installation Guide for NHFNumberUnitYou want to add pod 'NHFNumberUnit', '~> 1.0' similar to the following to your Podfile:target 'MyApp' do pod 'NHFNumberUnit', '~> 1.0' endThen run a pod install inside your terminal, or from CocoaPods.app.Alternatively to give it a test run, run the command:pod try NHFNumberUnitSee PodspecGitHub RepoPage on CocoaPods.orgNHFNumberUnit 1.0.5By牛宏飞nhfc99/NHFNumberUnitGitHub Repo 介绍 对价格等参数进行格式化处理操作 安装 pod 'NHFNumberUnit' 手动下载然后将文件夹拖至工程中即可 使用方法 /** 默认保留2位小数 @Param data @return */ (NSString *)formatFloat:(CGFloat)data; /** 默认保留3为小数 @Param data @return */ (NSString *)formatFloatThree:(CGFloat)data;