문제

What's different between:

CGFloat gray[4] = {0.9f, 0.9f, 0.9f, 1.0f};

and

CGFloat gray[4] = {0.9, 0.9, 0.9, 1.0};

?

I think they are the same but I don't know for sure.

도움이 되었습니까?

해결책

I believe it is indicating that the number is a float (i.e. single-precision floating point) as opposed to a double (double-precision floating point),

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top