Whenever comparing two doubles or floats for equality, programmers compute the difference between the two numbers and check if that difference is adequately small. Describe why and give a real-life illustration.
Describe how you would detect whether you encompass an infinite loop in your code.