Do something with it. What the program eventually will be doing is taking each digit from the program and pulsing the number on a speaker as part of a larger setup, so for 45.32 it would pulse 4 times, take a break, pulse 5 times, 3 times then 2 times.
michinyon:
Do each of those little boxes represent integers or chars ?
Are the numbers always the same length ?
How do you know where the decimal point goes ?
Each box represents a char, the numbers are all in the format 000.00, they will never get larger, so the number could be 000.01 or it could be 018.00, and I would write it out like 0|0|0|0|1 or 0|1|8|0|0. It is my way of showing you the array, so for the array for 123.34 would be manually created like this:
int array[] = {
1, 2, 3, 4, };
I apologize if this isn't making sense, I have trouble explaining my thoughts
OP: You could use sprint() to turn the float into a C string and process the text or you could multiply the float by 1000 if you want to save to 3 places and store the value in a long and chop through it using more direct integer techniques, the kind you did with pencil on paper in the old days. The least digit is the remainder of divide by 10, the modulo (%) operation gives that, a loop can chop off the low digit of the number every time around until there's nothing left. That's right to left, can be buffered for later left to right read or save or activate order.