Re: Float or Int to Hex
Re: Float or Int to Hex
- Subject: Re: Float or Int to Hex
- From: Andy Armstrong <email@hidden>
- Date: Wed, 23 Feb 2005 23:13:04 +0000
On 23 Feb 2005, at 23:02, Weston Houghton wrote:
Hi all,
I'm looking for leads on ways in Objective C to convert a float or int
value to a 2 char Hex string. I'm at a bit of a loss here, so any
thoughts would really be appreciated.
You want the hexadecimal equivalent of the LSB?
NSString *s = [[NSString alloc] initWithFormat: @"x", (int) n];
--
Andy Armstrong, hexten.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden