| **Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail) - USD ($) $ in Thousands** | Oct. 31, 2023 | Oct. 31, 2022 |
|----------------------------------------------------------------------------------------------------------------------------------------------|---------------|---------------|
| **Liabilities:**                                                                                                                             |          |          |
| Derivative Asset, Notional Amount                                                                                                            | $ 801,857     |          |
| Recurring                                                                                                                                    |          |          |
| **Assets:**                                                                                                                                  |          |          |
| Foreign currency forward contracts                                                                                                           | 696           | $ 5,035       |
| Total assets at fair value                                                                                                                   | 14,409        | 5,035         |
| **Liabilities:**                                                                                                                             |          |          |
| Deferred compensation plans                                                                                                                  | 9,637         | 9,076         |
| Foreign currency forward contracts                                                                                                           | 10,425        | 11,724        |
| Total liabilities at fair value                                                                                                              | 30,047        | 20,800        |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value                                                   | 13,713        |          |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Liabilities, Fair Value                                              | 9,985         |          |
| Recurring | Level 1                                                                                                                          |          |          |
| **Assets:**                                                                                                                                  |          |          |
| Foreign currency forward contracts                                                                                                           | 0             | 0             |
| Total assets at fair value                                                                                                                   | 0             | 0             |
| **Liabilities:**                                                                                                                             |          |          |
| Deferred compensation plans                                                                                                                  | 0             | 0             |
| Foreign currency forward contracts                                                                                                           | 0             | 0             |
| Total liabilities at fair value                                                                                                              | 0             | 0             |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value                                                   | 0             |          |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Liabilities, Fair Value                                              | 0             |          |
| Recurring | Level 2                                                                                                                          |          |          |
| **Assets:**                                                                                                                                  |          |          |
| Foreign currency forward contracts                                                                                                           | 696           | 5,035         |
| Total assets at fair value                                                                                                                   | 14,409        | 5,035         |
| **Liabilities:**                                                                                                                             |          |          |
| Deferred compensation plans                                                                                                                  | 9,637         | 9,076         |
| Foreign currency forward contracts                                                                                                           | 10,425        | 11,724        |
| Total liabilities at fair value                                                                                                              | 30,047        | 20,800        |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value                                                   | 13,713        |          |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Liabilities, Fair Value                                              | 9,985         |          |
| Recurring | Level 3                                                                                                                          |          |          |
| **Assets:**                                                                                                                                  |          |          |
| Foreign currency forward contracts                                                                                                           | 0             | 0             |
| Total assets at fair value                                                                                                                   | 0             | 0             |
| **Liabilities:**                                                                                                                             |          |          |
| Deferred compensation plans                                                                                                                  | 0             | 0             |
| Foreign currency forward contracts                                                                                                           | 0             | 0             |
| Total liabilities at fair value                                                                                                              | 0             | $ 0           |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value                                                   | 0             |          |
| Derivative Instruments in Hedges, Net Investment in Foreign Operations, Liabilities, Fair Value                                              | $ 0           |          |

| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2
+ Details**Name:**us-gaap_AssetsFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**instant |
| X                                                                                                                                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_AssetsFairValueDisclosureAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Nominal or face amount used to calculate payments on the derivative asset.
+ References
Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5CReference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5A -Subparagraph (SX 210.12-13A(Column D)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5AReference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column B)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5BReference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-1BReference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-1AReference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-1A
+ Details**Name:**us-gaap_DerivativeAssetNotionalAmount**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**na**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                                                                                                        |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of asset contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward contracts, and swaps.
+ References
No definition available.
+ Details**Name:**us-gaap_ForeignCurrencyContractAssetFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of liability contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward (delivery or nondelivery) contracts, and swaps entered into.
+ References
No definition available.
+ Details**Name:**us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value of financial and nonfinancial obligations.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2
+ Details**Name:**us-gaap_LiabilitiesFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_LiabilitiesFairValueDisclosureAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value of all derivative assets designated as hedges of net investment in foreign operations.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-4B
+ Details**Name:**us-gaap_NetInvestmentHedgeDerivativeAssetsAtFairValue**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value of all derivative liabilities designated as hedges of net investment in foreign operations.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-4B
+ Details**Name:**us-gaap_NetInvestmentHedgeDerivativeLiabilitiesAtFairValue**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                        |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value portion of other liabilities.
+ References
No definition available.
+ Details**Name:**us-gaap_OtherLiabilitiesFairValueDisclosure**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**instant |
| X                                                                                                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |