Tool/software: TI C/C++ Compiler
Dear an expert engineer,
I would like to know how to check NaN on F28335.
nan and isnan() are not provide by math.h
Could you please let me know how to do that ?
-------- I tried to check like below
FLOAT32* test_NaN_pf;
UINT32 test_long;
test_long = 0xFFFFFFFF;
test_NaN_pf = (FLOAT32*)&test_long;
if( FLT_MIN > *test_NaN_pf) {
judge_1 = 1;
}
if( FLT_MAX < *test_NaN_pf) {
judge_2 = 1;
}
-> result
judge_1 = 1, judge_2=0
--------
Best regards,
Hidehiko