ftoa() has no formatting capabilities, but you may use sprintf() for this. Have a look at this thread www.cypress.com/
Parameter explanation here : publications.gbdirect.co.uk/c_book/chapter9/formatted_io.html
Ftoa() converts to an ascii string, so is the limitation in Prstring (ascii) has no modifiers?
I will look at the link you provided but am still wondering if there is any way to truncate PrString out put to LCD.
You may shorten the string yourself by placing an x00 at the appropiate place, but LCD_PrString() has no modifiers as the documentation of the API shows.
sprintf() has a big impact on program space, should you decide to use
it attached formatting string information.
If you use Bob's suggestion search the string for the decimal point, then
search from there to where the NULL character is. If it is > 3 counts beyond
the DP point, place a NULL in the 3'rd position as Bob suggested. If it is
<= 3 counts do nothing to the string and print. A double nested for() loop
should do the job or something equivalent.
printf13.pdf 81.5 K
Thanks, For this project I decided to just use unsigned int Variables so I ended up using ITOA to print to LCD