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.11 Replies
- Altera_Forum
Honored Contributor
How are you trying to print it? I believe the libc employed by Nios II supports %f, %e, and %g. Keep in mind that the "small" or code reduced versions won't support floating point at all...
Regards, slacker