v3.26.1
Financial Instruments - Schedule of Pre-Tax Effect of Derivative Instruments in Cash Flow Hedging Relationships Included in Accumulated Other Comprehensive (Loss) Income (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Apr. 30, 2026
Apr. 30, 2025
Apr. 30, 2026
Apr. 30, 2025
Derivative Instruments, Gain (Loss) [Line Items]        
Unrealized gains (losses) arising during the period $ 106 $ (692) $ (147) $ (360)
Cash flow hedges:        
Derivative Instruments, Gain (Loss) [Line Items]        
Unrealized gains (losses) arising during the period 106 (692) (147) (360)
Foreign currency contracts | Cash flow hedges:        
Derivative Instruments, Gain (Loss) [Line Items]        
Unrealized gains (losses) arising during the period 106 (687) (147) (363)
Interest rate contracts | Cash flow hedges:        
Derivative Instruments, Gain (Loss) [Line Items]        
Unrealized gains (losses) arising during the period $ 0 $ (5) $ 0 $ 3