Forum Discussion

Chris039's avatar
Chris039
Icon for Occasional Contributor rankOccasional Contributor
3 years ago

Floating point not working in Nios V

Hi, I run the code below using both Nios V processor and online C code compiler, #include <stdio.h> int main() { double total = 5; int number = 1; float percentage = number / total ; pr...