v3.26.1
Financial Instruments - Schedule of Pre-Tax Effect of Derivative Instruments in Cash Flow Hedging Relationships Included in Earnings (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings $ (18) $ (202) $ (119) $ (11)
Cash flow hedges:        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings (18) (202) (119) (11)
Cash flow hedges: | Income Statement Location [Axis]: us-gaap:CostOfRevenue        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings (13) (21) (37) (71)
Cash flow hedges: | Income Statement Location [Axis]: us-gaap:CostsAndExpenses        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings 3 0 7 1
Cash flow hedges: | Income Statement Location [Axis]: us-gaap:NonoperatingIncomeExpense        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings 4 3 12 9
Cash flow hedges: | Income Statement Location [Axis]: us-gaap:Revenues        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings $ (12) $ (184) $ (101) $ 50