Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Clarion in general: Converting number to hex 2002-07-10 -- Andrew Ireland Newsgroups: comp.lang.clarion
Hi Randy,
> Wow!
> I didn't realize how complex a simple algorithm could be made. :)
> Here's my pitiful excuse for a dec-to-hex conversion.
I think you'll find that code is years old and these days I tend to call....
_itoa(num, buf, 16)
which is just a little simpler or I would code it in Asm to make it extremely fast.
Also these days, I don't use strings so that tells you how old that code is. My coding has improved a lot
in a few years. Also
DecVal is not needed, something else I would not do these days so if you want to compare your code with
mine publicly, do it
with something recent!
Andy
Today is November 21, 2024, 7:34 am This article has been viewed 35221 times. Google search has resulted in 95 hits on this article since January 25, 2004.
|
|