Login
`
Templates, Tools and Utilities
|
||
Icetips Article
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, 3:57 am This article has been viewed 35220 times. Google search has resulted in 95 hits on this article since January 25, 2004.
|
|