Sunday, November 14, 2010

Problem printing double with printf on iPhone

On other platforms, it usually does not matter whether you use %g or %lg to print double with printf, but for iPhone, you have to use %lg.

No comments:

Post a Comment