Calculating Unknown Resistor with Arduino

I believe in one of my updated code pieces above, I am doing these suggestions. You can go back up and look to verify.

I am stealing this quote, it made me chuckle.. I didn't think about that. I haven't had an issue with precision as I am only going to 2 decimal places, but I will update the code to use integers wherever possible.