I have algorithm and I'm trying to run this algorithm on ESP32 ,
It works well with all datatypes (int and float) but I have problem with double values for example it work with data like these:
1.12165
1.60805
1.51042
1.53073
1.50219
1.65804
1.84772
1.50749
And with values like these, it does not work:
1.128165
1.608605
1.510472
1.530753
1.502149
1.658043
1.847727
1.507494
I have some thing like reach over the boundaries because I get on "inf" or "-inf" in the output!
The reason is the number of digit if (1.128165) does not work, but with 6 digit (1.12165) it works well ! Why do you think?!