Specialized innings handling (X.1, X.2), fractional-to-out conversions, and game-play logical constraints (Softball/Baseball focus).
This skill provides expert handling for specialized data formats and logical business rules common in diamond sports (Softball/Baseball).
In diamond sports, innings are recorded in thirds. This skill standardizes the "decimal" representation:
7.0 = 7 innings (21 outs)7.1 = 7 innings and 1 out (22 outs)7.2 = 7 innings and 2 outs (23 outs)7.1 will lead to incorrect results. 7.1 should be treated as 7 + 1/3.Math.round() on decimal remainders to prevent floating-point errors during string-to-number transitions..1/.2Validation must ensure the data represents a legal game scenario:
Innings_Home_Batting <= Innings_Visitor_Batting.Innings_Home_Batting == Innings_Visitor_Batting.Earned Runs <= Total Runs./^(\d+)(\.([12]))?$/ to strictly enforce the .1/.2 format.0.0001 to account for irrational number comparisons.+ or - sign to improve scannability in rankings.