On May 4, 2013, at 12:54 AM, Gerriet M. Denkmann wrote:
> Seems to me rather less code.
Well sure, if you want to write *less* code. :)
(To add to the "duh" factor, I know I wrote other value transformers on that
project.)
--Andy
___
Cocoa-dev mai
I use SocketIO project on my iOS app to connect to my node.js server and
everything works great until I choose to connect to facebook. When I connect to
Facebook I send some data to my server and he answer with some data like "user
already connected, user created in database" etc. And after that
I have need to turn a local float value into a char array.
That is, The Quartz 2D graphics function requires the passing of a (const char
*) to a text string or I was thinking of a character array.
My mind is mush at the moment - can't seem to recall the way to program a
conversion of
float
You need to do a string conversion, just like you would in any situation where
you need a textual version of a number.
One possible way:
NSString* s = [NSString stringWithFormat: @"%.1f", fv];
const char* sp = s.UTF8String;
another:
char* s[16];
snprintf(s, 16,