Chris039
Occasional Contributor
3 years agoFloating 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 ;
printf("%.5f",percentage);
return 0;
}
Online compiler is working
https://www.programiz.com/c-programming/online-compiler/
Nios V is not working
Could you help me?