Thank you SOOOOOOOOO much for the replies!
YOU ARE ALL CORRECT!
The problems were multiple. And one potential one remains.....
- As PaulS pointed out, there was the following error in the sprintf statement:
" . . . The 2nd %i should really be %0.2i, to assure 2 digits in the output, with leading zeros as required (53.09 would appear as 53.9 with your statement). . ."
As CrossRoads stated, yes the flowMPH was in the proper form (float) to support decimals; and this was the clue. Flow MPH1 and flow MPH2 are stated as int types - but apparently they must be defined as floats as shown in the snippet below in order to provide the proper output at the receiver end.
As Robtillaart kindly explained, the entire formula needed another set of parentheses so that division is completed prior to casting. DOH! And I will post the final code when I am less ashamed of how it looks right now. I feel like I am building a Frankenstein. At present - there is a lot going on with the project as I measure wind speed using pulse interrupt method, as well as 16 point wind direction, 3 minute and 10 minute average speed, instantaneous (measured at 11.25 degree anemometer rotation interval) peak gust and will be adding wind chill and heat indices next. The project motivation is to re-build an existing high quality wired weather station platform to be wireless at its existing console, and to have the capacity for an additional tiny roaming lcd device to monitor conditions away from the console. Probably not a great starter project for one who has never dabbled in programming, but one that has certainly been very rewarding to watch come true - thanks to your help and that of others here.
Wow! I coulda' had a V8! ( a reference to a silly ad for vegetable juice - that states something that should have otherwise been obvious)!
Potential problem? I have noticed that in a clam condition, and if the anemometer comes to rest at a very very tiny spot in between ON/OFF coded interruptor disk, the output of the photo transistor may fire randomly, resulting in an annoying (non true reading). This condition would be rare, indeed, but possible - so I really would like to eliminate it. Any ideas????
At the point I asked for help (up to a few moments ago), I was completely frustrated - time to walk away - but not nearly ready to quit. That simply will not happen. A common thread here on the forums as well, thankfully.
In any event, thank you all for the great assistance which is why this forum is so powerful. I am humbled by the patience, knowledge and skill of those among us here. I will also do the same when my knowledge surpasses my lack of knowledge - I am further convinced each day that it may be a while! ;)
Working code snippet:
int flowMPH1 = (float)flowMPH;
int flowMPH2 = ((float)(flowMPH - flowMPH1))*100.0; // For two decimal points
sprintf(msg, "%i.%0.2i", flowMPH1,flowMPH2);//
vw_send((uint8_t *)msg, strlen(msg));