```
NSString* stringNumber =@"0.090222120000";
NSNumber* nsNumber = @(stringNumber.floatValue);
NSString* outNumber = [NSStringstringWithFormat:@"%@",nsNumber];
```
```
NSString* stringNumber =@"0.090222120000";
NSNumber* nsNumber = @(stringNumber.floatValue);
NSString* outNumber = [NSStringstringWithFormat:@"%@",nsNumber];
```
本文标题:ios 去掉浮点数多余0
本文链接:https://www.haomeiwen.com/subject/rohzmqtx.html
网友评论