Hi all friends,
I have a problem that I dont't understand. May be my C-knoledge is not the best.
The problem is that I have int16_t variables and when casting to float, it results in NaN if the variable is 0.
What is the problem?
#include <avr/io.h> #include <math.h> void filter(float); int16_t var; var = 0; int main(void){ filter((float)var); } filter (float var){ code... }