Wrapping classes - overlapping method

Hello,
i’m stuck with my assignment. I’m not getting the result. I’m getting “Infinity” instead and the point numbers are turning in whole numbers. But I used float though. Am I doing the overlapping wrongly?

Thanks in advance!

You are adding float.MAX_VALUE to float.MAX_VALUE (2nd line in setup()) which is more then float can handle, and therefore it says endless

I guess

1 Like