So this was what the original code looked like. I broke it down into individual chunks to figure out where the problem was stemming from. GetUptimeSeconds() returns a float and m_uptimeLasCoinDetected is also a float. So it essentially is the same thing. Even in the format you displayed above, I get the same error.