How to exclude "inf(inite)" values when checking laser values?

Thanks Bayodesegun. I am considering subscribing to the Robot Ignite materials and so far so good!

I figured out thats where the value was coming from,'that is why I made the spud value. The problem I had was how do exclude this as a valid value without finding a known version first? float(laser) = ínf didnt seem to do anything.

Even the example code has the same problem of returning the biggest inf result, which as described above is correct, but not the desired information for this part of the course.