XML 47 R36.htm IDEA: XBRL DOCUMENT v3.7.0.1
Earnings per share - Additional Information (Detail) - shares
3 Months Ended 9 Months Ended
Jul. 31, 2017
Jul. 31, 2016
Jul. 31, 2017
Jul. 31, 2016
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount 812,244 1,022,970 1,104,837 1,084,419