Add decimal number handlers to training max calculations to prevent potential crash.