Using Double values

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?!

Please post a complete small example program that demonstrates your problem.

a7

A wild guess, but the problem is almost certainly in the code that you did not post

my code is very big I can not post it!

That’s why we want to see a small complete example.

Just strip out the calculations and set them into an environment where your expressions can be seen going wrong.

Or post the whole thing, really, there’s nothing at all to explain your difficulties, the number of digits is how you are looking at it, but all doubles have the same resolution. As do all floats.

a7

As above