knowledge-database (beta)

Current group: comp.theory.

atoi

atoi  
puzzlecracker
 Re: atoi  
Martin Johansen
From:puzzlecracker
Subject:atoi
Date:20 Jan 2005 09:29:59 -0800
does anyone know how to implement this function?
From:Martin Johansen
Subject:Re: atoi
Date:Thu, 20 Jan 2005 20:46:10 +0100
Yes

Take ur number n, say 123

for each digit d in n
a = (n/10^d)%10 // a is 3, 2, 1 resp.
str[d] = a + '0'; // or similar convert-to-ascii or unicode or wathever
code

you get the idea

--
_____
New computer algebra system:
http://sourceforge.net/projects/dcas/
My website:
http://www.denotesoftware.com/

"puzzlecracker" wrote in message
news:1106242199.137431.174090@c13g2000cwb.googlegroups.com...
> does anyone know how to implement this function?
>
   

Copyright © 2006 knowledge-database   -   All rights reserved