Dan Vona

Simple Printf on CF question

Discussion created by Dan Vona on Feb 23, 2006
Latest reply on Apr 20, 2006 by Joe Haas

I'm trying to do a simple print of a floating point number out of a UART, and cannot figure out why I can’t seem to use a printf statement to display floating point values? For example

printf("\ntest printf with float = %5.2f", 1.23456);

results in just the letter “f” printed from hyperterminal: test printf with float = f.

Is there something I need to do because I am not on a floating point machine to enable printf to print floats?

 

Outcomes