NSDecimalNumber *num = [NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%f",_data.money]];
_dealMoneyLab.text = [NSString stringWithFormat:@"金额: %@", num];
NSDecimalNumber *num = [NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%f",_data.money]];
_dealMoneyLab.text = [NSString stringWithFormat:@"金额: %@", num];
本文标题:double 转成nsstring 尾数去多余的0
本文链接:https://www.haomeiwen.com/subject/ovqczxtx.html
网友评论