iOS 解决json解析过程中浮点型字符串精度丢失的问题
@brief 修正浮点型精度丢失@param str 传入接口取到的数据@return 修正精度后的数据*/+(NSString *)reviseString:(NSString *)str{//直接传入精度丢失有问题的Double类型double conversionValue = [str doubleValue];NSString *doubleString = [NSString stringWithFormat:@\"%lf\", conversionValue];NSDecimalNumber *decNumber = [NSDecimalNumber decimalNumberWithString:doubleString];return [decNumber stringValue];}