Forum Discussion
Altera_Forum
Honored Contributor
15 years agoprinting floating point
Hi, is there any ways to print float number in Nios II? Example: a = 100, b = 195 c = (b-a)/100, so c = 0.95 so, how to print c = 0.95? because when i print, the answer is 0.
Altera_Forum
Honored Contributor
15 years agoAre you using the small newlib C library? The small library doesn't support printing floating point values. Search for "footprint" in the Nios II software developer's handbook for more details.
If that's not the case perhaps you are running low on memory and the stack and heap are colliding.