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 6 Months Ended
Apr. 30, 2026
Apr. 30, 2025
Apr. 30, 2026
Apr. 30, 2025
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings $ (94) $ 148 $ (101) $ 191
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 (94) 148 (101) 191
Cash flow hedges: | Products net revenue        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings (87) 167 (89) 234
Cash flow hedges: | Cost of products net revenue        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings (13) (23) (24) (50)
Cash flow hedges: | Operating expenses        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings 2 1 4 1
Cash flow hedges: | Interest and other, net        
Pre-tax effect of derivative instruments in cash flow hedging relationships        
(Loss)/gain reclassified from Accumulated  other comprehensive (loss) income into earnings $ 4 $ 3 $ 8 $ 6