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 | 9 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2026 |
Jul. 31, 2025 |
|
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Unrealized gains (losses) arising during the period | $ 141 | $ 59 | $ (6) | $ (301) |
| Cash flow hedges: | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Unrealized gains (losses) arising during the period | 141 | 59 | (6) | (301) |
| Foreign currency contracts | Cash flow hedges: | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Unrealized gains (losses) arising during the period | 141 | 59 | (6) | (304) |
| Interest rate contracts | Cash flow hedges: | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Unrealized gains (losses) arising during the period | $ 0 | $ 0 | $ 0 | $ 3 |
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, before tax and reclassification, of gain (loss) from derivative instrument designated and qualifying cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|