floats returning errors?

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


what is inf?

where can I find these

Infinity. Are you dividing by zero?

what is inf?


where can I find these

Try your friend Mr Google

For instance infinity and nan

Welcome to the forum.

Please read the post at the start of any forum , entitled “How to use this Forum”.

Thanks… Tom… :slight_smile: