小编Cri*_*ian的帖子

将 NSUInteger 除以 100

我有一个 NSUInteger,我想将它除以 100。假设我在 NSUInteger 中有数字 1,我想将它除以 100 并得到 0.01 作为结果。

(float) percent / 100
Run Code Online (Sandbox Code Playgroud)

百分比是一个 NSUInteger

cocoa-touch objective-c nsuinteger ios

1
推荐指数
1
解决办法
849
查看次数

标签 统计

cocoa-touch ×1

ios ×1

nsuinteger ×1

objective-c ×1