Darren, Try this..... printf("%2.3f",x) What this does is prints a floating point number taking up 5 digits. In this case 2 to the left of the decimal point, and 3 to the right. If there are more digits to the left of the DP, increase the number on the left side of the formatting string. Ditto for the right side. Hope this helps. Regards, Jim -----Original Message----- From: Darren Logan To: PICLIST@MITVMA.MIT.EDU Date: Saturday, February 27, 1999 2:39 PM Subject: Floating point output >Anyone know how to output a floating point number in readable form with the >CCS C compiler ? >E.g, printf a number such as 20.564 as you see it here. > >Thanks. >Daz