04-05-2013 02:06 AM
Hi,
If i give input unsigned char array as a[]={12, 45, 89, 00, 45, 12, 67, 12} ;
I want output as follows in unsined int array b[]={12458900, 45126712};
Thanks in Advance,
Regards,
Harish. G.
Solved! Go to Solution.
04-05-2013 02:50 AM
04-05-2013 02:50 AM
Hi Harish,
You should be able to do this using the following code
You will just need to stick this into a loop and read four elements at a time from the array.
04-05-2013 03:49 AM - edited 04-05-2013 03:52 AM
Hi Harish,
in your first thread you want to create BCD byte arrays from larger integer numbers and now you need to go the same way back?
The basics were shown to you: all you had to change was some simple math!
You really should have sticked to your first thread...
04-05-2013 04:34 AM
Or without for loop.
04-05-2013 04:52 AM
Hi,
Thanks,
Regards,
Harish. G.
04-05-2013 05:09 AM - edited 04-05-2013 05:09 AM
Hi,
input string is a array of unsigned char elements, in that there is no comma,
then what is the delimeter i have to use:)
Regards,
Harish. G.
04-05-2013 05:44 AM
04-05-2013 06:09 AM - edited 04-05-2013 06:10 AM
Hi,
If you convert into U8 array. its a integer its nt a string,
How you wil give this input to Spreadsheet string.
04-05-2013 06:12 AM
Hi harish,
you don't need SpreadsheetStringToArray in that case. All you need is an U8 array for the conversion to I32 array as shown before!
I only used SpreadsheetStringToArray as I didn't want to type all those numbers in a U8 array constant...