I need to write a code of ftoa (means float to alphabet)
I refered the content of itoa, but I sill have the problem to handle the digits after decimal point.
Are there some hints? (smile)
Not whole code is ok? hints make problem more fun
That isn't simpler, and it doesn't do the right thing. ftoa() converts a number to its character representation. That is, 12.34 --> "12.34".
Simply casting a number to a character just gives you the indexed character in whatever codeset you happen to be using (most people use ASCII, but there are a lot of variations.) That is, 65 --> "A".