v3.26.1
NET INCOME PER SHARE NET INCOME PER SHARE (Computation) (Details) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Earnings Per Share [Abstract]        
Net income $ 397 $ 191 $ 1,027 $ 617
Basic weighted-average shares 171 172 171 172
Potential common shares 2 1 2 1
Diluted weighted-average shares 173 173 173 173
Net income per share - basic $ 2.33 $ 1.11 $ 6.00 $ 3.58
Net income per share - diluted $ 2.30 $ 1.10 $ 5.93 $ 3.56