Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "float_t" for?

Should I be using float_t instead of float?

like image 687
morgancodes Avatar asked Feb 12 '10 16:02

morgancodes


2 Answers

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.

like image 158
Chuck Avatar answered Oct 20 '22 18:10

Chuck


No, you should be using CGFloat.

like image 44
Mike Abdullah Avatar answered Oct 20 '22 17:10

Mike Abdullah