morgancodes
morgancodes

Reputation: 25265

What is "float_t" for?

Should I be using float_t instead of float?

Upvotes: 7

Views: 2220

Answers (2)

Mike Abdullah
Mike Abdullah

Reputation: 15003

No, you should be using CGFloat.

Upvotes: 1

Chuck
Chuck

Reputation: 237040

They're additional types requires by the C standard. They're intended to be "the implementation's most efficient types at least as wide as float and double, respectively." The question of what you should be doing is a matter of opinion, I suppose, but I've never seen them used in any Cocoa code (and probably not even any C code) if that means anything to you.

Upvotes: 7

Related Questions