Thanks! 

sprintf worked great - Didn't realize that those wonderful Standard C functions 
were available.  

Again, Thanks

YT 


On May 4, 2013, at 4:23 PM, Mohit Sharma <mohit.sharma0...@gmail.com> wrote:

> You might want to look at sprintf.  sprintf(text, "%f", fv) should work just 
> fine.
> 
> 
> On Sat, May 4, 2013 at 4:20 PM, YT <y...@redwoodcontent.com> wrote:
> 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 fv = 40.0;
> 
> into
> 
> const char *text = "40.0";
> 
> or
> 
> const char text[ ] = "40.0";
> 
> 
> Please advise...
> 
> Thanks YT
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/mohit.sharma0690%40gmail.com
> 
> This email sent to mohit.sharma0...@gmail.com
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to