XML 69 R59.htm IDEA: XBRL DOCUMENT v3.7.0.1
Stock-Based Compensation - Schedule of Stock-Based Compensation Expense and the Resulting Tax Benefits (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2017
Jul. 31, 2016
Continuing operations        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Stock-based compensation expense $ 128 $ 117 $ 406 $ 347
Income tax benefit (41) (34) (130) (101)
Stock-based compensation expense from continuing operations, net of tax 87 83 276 246
Discontinued operations        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Stock-based compensation expense $ 0 $ 32 $ 100 $ 105