RTD = calRAdevice1 * (float(myRTD.byteCode) / ( 2097152.0 - float(myRTD.byteCode)));
this is now also strange to me
The only thing I can remember right now was that direct multiplication between calRAdevice and byteCode will always result in an overflow.