STOCKHOLDERS' EQUITY Stock Repurchases (Details) - USD ($) shares in Millions, $ in Millions |
12 Months Ended |
|
Oct. 31, 2017 |
Oct. 31, 2016 |
Oct. 31, 2015 |
May 28, 2015 |
| Share Repurchase Program [Line Items] |
|
|
|
|
| Cost to repurchase shares of common stock under share repurchase program |
$ 194
|
$ 434
|
$ 267
|
|
| Number of treasury shares retired |
294.2
|
|
|
|
| Aggregate cost of treasury shares retired. |
$ 10,700
|
|
|
|
| 2014 Share Repurchase Program [Member] |
|
|
|
|
| Share Repurchase Program [Line Items] |
|
|
|
|
| Weighted average count of diluted shares |
335.0
|
|
|
|
| Number of treasury shares acquired |
|
2.4
|
6.0
|
|
| Cost to repurchase shares of common stock under share repurchase program |
|
$ 98
|
$ 267
|
|
| 2015 Repurchase Program [Member] |
|
|
|
|
| Share Repurchase Program [Line Items] |
|
|
|
|
| Stock Repurchase Program, Authorized Amount |
|
|
|
$ 1,140
|
| Number of treasury shares acquired |
4.1
|
8.3
|
|
|
| Cost to repurchase shares of common stock under share repurchase program |
$ 194
|
$ 336
|
|
|
| Remaining authorized repurchase amount |
610
|
|
|
|
| Retained Earnings |
|
|
|
|
| Share Repurchase Program [Line Items] |
|
|
|
|
| Aggregate cost of treasury shares retired. |
6,729
|
|
|
|
| Additional Paid-in Capital |
|
|
|
|
| Share Repurchase Program [Line Items] |
|
|
|
|
| Aggregate cost of treasury shares retired. |
$ 3,970
|
|
|
|