SHARE-BASED COMPENSATION Allocated Share-based compensation expense (Details) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2026 |
Jul. 31, 2025 |
|
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | ||||
| Share-based compensation expense | $ 31 | $ 32 | $ 106 | $ 103 |
| Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | ||||
| Share-based compensation expense | 13 | 13 | 35 | 35 |
| Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | ||||
| Share-based compensation expense | 3 | 3 | 12 | 11 |
| Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs | ||||
| Share-based compensation expense | $ 15 | $ 16 | $ 59 | $ 57 |