Net Earnings Per Share (Details) - USD ($) $ / shares in Units, shares in Millions, $ in Millions |
3 Months Ended |
6 Months Ended |
Apr. 30, 2018 |
Apr. 30, 2017 |
Apr. 30, 2018 |
Apr. 30, 2017 |
| Numerator: |
|
|
|
|
| Net earnings (loss) from continuing operations |
$ 850
|
$ (478)
|
$ 2,332
|
$ (227)
|
| Net loss from discontinued operations |
(72)
|
(134)
|
(118)
|
(118)
|
| Net earnings (loss) |
$ 778
|
$ (612)
|
$ 2,214
|
$ (345)
|
| Denominator: |
|
|
|
|
| Weighted-average shares used to compute basic net EPS (in shares) |
1,552
|
1,658
|
1,571
|
1,664
|
| Dilutive effect of employee stock plans (in shares) |
30
|
0
|
30
|
0
|
| Weighted-average shares used to compute diluted net EPS (in shares) |
1,582
|
1,658
|
1,601
|
1,664
|
| Basic net earnings (loss) per share: |
|
|
|
|
| Continuing operations (in dollars per share) |
$ 0.55
|
$ (0.29)
|
$ 1.48
|
$ (0.14)
|
| Discontinued operations (in dollars per share) |
(0.05)
|
(0.08)
|
(0.07)
|
(0.07)
|
| Total basic net earnings (loss) per share (in dollars per share) |
0.50
|
(0.37)
|
1.41
|
(0.21)
|
| Diluted net earnings (loss) per share: |
|
|
|
|
| Diluted - Continuing operations (in dollars per share) |
0.54
|
(0.29)
|
1.46
|
(0.14)
|
| Diluted - Discontinued operations (in dollars per share) |
(0.05)
|
(0.08)
|
(0.08)
|
(0.07)
|
| Total diluted net earnings (loss) per share (in dollars per share) |
$ 0.49
|
$ (0.37)
|
$ 1.38
|
$ (0.21)
|
| Anti-dilutive weighted-average stock awards (in shares) |
1
|
85
|
3
|
90
|