User Profile
NOHWJ
Joined 5 years ago
User Widgets
Contributions
How can i use float data type in NIOS II?
Hi, i added FPH2 (Floating Point Hardware 2) and declared float type variable and printed it to check value. but, it showed empty value. is it correct method to use float type like this? ------------------------------------------------------------------------------------------------------------------ float pi = 3.14; printf("%f",pi);1.1KViews0likes3Comments- 1.2KViews0likes0Comments
print float type
Hi, I'm trying to print float type data like this. ----------------------- #include <stdio.h> float data=0.123; printf("%f",data); ---------------------- but, it shows empty in console display. No syntax ,build error before Run. i tried %e , %g and it also showed same results. for integer type, it works. so i don't know how to solve.1.2KViews0likes4Comments