Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么不同:
CGFloat gray[4] = {0.9f, 0.9f, 0.9f, 1.0f};
和
CGFloat gray[4] = {0.9, 0.9, 0.9, 1.0};
?
我认为它们是相同的,但我不确定。
我相信这表明数字是浮点数(即单精度浮点数)而不是双精度数(双精度浮点数),