SHARE-BASED COMPENSATION Allocated Share-based compensation expense (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Apr. 30, 2017
Apr. 30, 2016
Apr. 30, 2017
Apr. 30, 2016
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Share-based Compensation Capitalized within inventory $ 0 $ 0    
Income tax benefit realized from exercised stock options and similar awards 0 (1) $ 2 $ 0
Allocated Share-based Compensation Expense 13 13 31 29
Cost of products and services        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Allocated Share-based Compensation Expense 3 4 6 7
Research and development        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Allocated Share-based Compensation Expense 2 2 6 5
Selling, general and administrative        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Allocated Share-based Compensation Expense $ 8 $ 7 $ 19 $ 17