1

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.

Martin G
  • 16,009
  • 9
  • 78
  • 91
Tomasz Szulc
  • 4,159
  • 4
  • 40
  • 78

1 Answers1

4

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),

Vipul
  • 31,716
  • 7
  • 69
  • 86