floats returning errors?

Hello,
I am working on a project that has a number of floats for various calculations.

When I print the results on the serial port a couple have started return strange values or errors

‘nan’ and ‘ovf’ What do these mean?

nan = not a number
ovf = overflow

Please post your code following the advice on posting a programming question given in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and to use code tags when posting code here

cheers

what is inf?

where can I find these

Infinity. Are you dividing by zero?

what is inf?

infinity

where can I find these

Try your friend Mr Google

For instance infinity and nan

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled “How to use this Forum”.
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

Thanks… Tom… :slight_smile: