v3.8.0.1

Financial Instruments - Pre-tax Effect of Derivative Instruments Not Designated as Hedging Instruments on the Condensed Consolidated and Combined Statements of Earnings (Details) - USD ($) $ in Millions | 3 Months Ended | 6 Months Ended
--- | --- | ---
Apr. 30, 2018 | Apr. 30, 2017 | Apr. 30, 2018 | Apr. 30, 2017
Derivative Instruments, Gain (Loss) [Line Items] |  |  |  |
Gains (Losses) Recognized in Earnings on Derivatives | $ 260 | $ (198) | $ (129) | $ (242)
Foreign currency contracts | Interest and other, net |  |  |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |  |  |
Gains (Losses) Recognized in Earnings on Derivatives | 261 | (199) | (129) | (246)
Other derivatives | Interest and other, net |  |  |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |  |  |
Gains (Losses) Recognized in Earnings on Derivatives | $ (1) | $ 1 | $ 0 | $ 4

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. + References No definition available. + Details
Name: | us-gaap_DerivativeInstrumentsGainLossLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of realized and unrealized gain (loss) of derivative instruments not designated or qualifying as hedging instruments. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=84234895&loc=SL5624171-113959 + Details
Name: | us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_ForeignExchangeContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_NonoperatingIncomeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_OtherContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |