[GHC] #12999: Investigate use of floating-point arithmetic in I/O Event-handler