Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHow to show float on console?
I want to print float on console. In code : double a; printf("the num is %f/n",a); but ,in nios the result is: the num is no float!who can help me ?
Altera_Forum
Honored Contributor
17 years agoisn't %f for floats only? I believe you need %lf to print a double.