Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

How can i use float data type in NIOS II?

NOHWJ
Beginner
650 Views

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);

 

 

0 Kudos
3 Replies
BoonBengT_Intel
Moderator
623 Views

Hi @NOHWJ,

Thank you for posting in Intel community forum and hope this message find you well.
The C codes looks good and it should work, possible to share the entire C files for us to better troubleshooting the situation?

Warm regards.
BB

0 Kudos
BoonBengT_Intel
Moderator
602 Views

Hi @NOHWJ,

Hope this message find you well, by any chances did you managed to look into the clarification mention above?
 
Warm Regards
BB

0 Kudos
BoonBengT_Intel
Moderator
569 Views

Hi @NOHWJ,

Good day, as we do not receive any response from you to the previous clarification that we have provided. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions. 

 

Warm Regards

BB

0 Kudos
Reply