My Float gives me inf / ovf / and sometimes the correct value...

In my code:

float Voltage_Ref[800];
float voltage;

diff=pow((Voltage_Ref[Z] - voltage),2.);
ssd+=diff;

Not sure what's up...

my code.png

fixed, made the array +1 slot.... [801].... not sure why though...

fixed, made the array +1 slot.... [801].... not sure why though...

Looks like you've got array indexing issues . . .but we can't see your code (though 800 floats could be problematical on some Arduinos)