问题描述
@'1111.11'转 longlong 不丢失精度
问题解答
回答1:NSString *str = @'FFFF00FF';NSScanner* scanner = [NSScanner scannerWithString: str];
unsigned long long longValue;[scanner scanHexLongLong: &longValue];NSLog(@'LongValue = %lld', longValue);试试这个
问题描述
@'1111.11'转 longlong 不丢失精度
问题解答
回答1:NSString *str = @'FFFF00FF';NSScanner* scanner = [NSScanner scannerWithString: str];
unsigned long long longValue;[scanner scanHexLongLong: &longValue];NSLog(@'LongValue = %lld', longValue);试试这个
相关文章:
网公网安备:皖ICP备2020019022号-3 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主