I can use
double f=9.9;
without any trouble.
This Microchip implementation of printf doesn't support the printing of floats, but you can easily print them on
your own.
Code:
#define ACCURACY 1000 //How many decimal places are important to you
void PrintFloat(float value)
{
long i, i2; // Don't need to be longs if you only need a few significant digits
/* Separate the whole number from the fraction and print each of them */
i = (long) value;
i2 = (long) ((value-i)*ACCURACY); // You can get fancy and round by adding .5
printf(" %d.%03d \r", (int)i, (int)i2); //e.g., "234.078"
}
(Been there, did this a few days ago on
http://www.chiefdelphi.com/forums/sh...489#post328489)