v3.26.1
Earnings Per Share - Schedule of Stock Options and Restricted Stock Units Not Included in the Diluted Earnings Per Share Calculation (Details) - $ / shares
shares in Thousands
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Exercise prices, lower limit (in dollars per share) $ 76.14 $ 75.03 $ 76.14 $ 82.46
Exercise prices, upper limit (in dollars per share) $ 101.54 $ 101.54 $ 101.54 $ 101.54
Stock option shares excluded        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Stock option shares and restricted stock units excluded (in shares) 2,225 2,289 2,225 1,506
Restricted stock units excluded        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Stock option shares and restricted stock units excluded (in shares) 1,128 589 336 557