JEL_W
New Contributor
7 years agoFloats number nios
hi all,
I want to implement this operation, in NIOS II :
float a,b,c,registre;
clock_t temps_initial,temps_final;
float temps_cpu;
a=2.45;
b=3.48;
temps_initial =clock();
registre=a/b;
c=asin(registre);
temps_final=clock();
temps_cpu=(temps_final-temps_initial)/CLOCKS_PER_SEC;
printf("temps_cpu=%f\n",temps_cpu);
printf("resultat=%f\n", c);
but it didn't work, anybody has an idea about how can we implement floating numbers in nios ?
i define these libraries at the top of the programm
#include <stdio.h>
#include <unistd.h>
#include "math.h"
#include <time.h>
#include <float.h>
is there anything missing ?
thank you all