Hello, I want to convert a 14 digit word (which is a float) to the elements of an array.EXample:987654321012.34 to b[0]=9;b[1]=8;b[2]=7...etc..Can anyone please help..Thanks in advance...
sprintf ?
I agree with Andrew: sprintf() does exactly that. One thing doesn't look right, though: a 32-bit float only has enough precision for 7 decimal digits. For 14 digits to be accurate, this would have to be a 64-bit double.
I don't think C51 supports that - check the Manual.