v3.26.1
STOCKHOLDERS' EQUITY - Reclassifications out of accumulated comprehensive income (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Reclassification Adjustment out of Accumulated Other Comprehensive Income [Line Items]        
Unrealized gain (loss) on derivatives Reclassification, before Tax $ 1 $ (7) $ (1) $ (2)
Amounts reclassified into earnings related to derivative instruments, tax 0 2 1 0
Unrealized gain (loss) on derivatives after reclassification and after Tax 1 (5) 0 (2)
Actuarial Gain (Loss), Reclassification Adjustment from AOCI, before Tax 5 7 20 13
Prior service benefit 0 1 0 1
Actuarial net gain (loss) and prior service benefit reclassified, before tax 5 8 20 14
Tax on actuarial net loss and prior service benefit reclassified (2) (3) (6) (5)
Actuarial net loss and prior service benefit reclassified, net of tax 3 5 14 9
Reclassification from Accumulated Other Comprehensive Income, Current Period, Net of Tax 4 0 14 7
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold        
Reclassification Adjustment out of Accumulated Other Comprehensive Income [Line Items]        
Unrealized gain (loss) on derivatives Reclassification, before Tax 1 (7) 0 (1)
Income Statement Location [Axis]: us-gaap:InterestExpense        
Reclassification Adjustment out of Accumulated Other Comprehensive Income [Line Items]        
Unrealized gain (loss) on derivatives Reclassification, before Tax $ 0 $ 0 $ (1) $ (1)