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 on Derivatives [Line Items]        
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax $ 0 $ (1) $ (4) $ (2)
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, after Tax 5 1 17 9
Other Comprehensive Income (Loss), Defined Benefit Plan, Gain (Loss), Reclassification Adjustment from AOCI, before Tax 1 0 2 (2)
Other Comprehensive Income (Loss), Defined Benefit Plan, Gain (Loss), Reclassification Adjustment from AOCI, Tax 0 0 (1) 0
Change in net actuarial gain (loss) and prior service cost associated with defined benefit plan, net of tax benefit (expense) of $1, zero, $(2) and zero (1) 0 (1) 2
Reclassification from Accumulated Other Comprehensive Income, Current Period, Net of Tax 6 1 18 7
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold        
Reclassification Adjustment out of Accumulated Other Comprehensive Income on Derivatives [Line Items]        
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 2 (3) 10 1
Income Statement Location [Axis]: us-gaap:InterestExpenseNonoperating        
Reclassification Adjustment out of Accumulated Other Comprehensive Income on Derivatives [Line Items]        
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 3 3 8 8
Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense        
Reclassification Adjustment out of Accumulated Other Comprehensive Income on Derivatives [Line Items]        
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax $ 0 $ 2 $ 3 $ 2