NSInteger width = 10;
NSInteger height = 3;
float scale = self_W * 1.0 / counts;
NSLog(@"%f", scale);
// (3.333333)
NSInteger width = 10;
NSInteger height = 3;
float scale = self_W * 1.0 / counts;
NSLog(@"%f", scale);
// (3.333333)
本文标题:iOS 除法,结果为小数格式
本文链接:https://www.haomeiwen.com/subject/oqmkqctx.html
网友评论