Fair Value Measurements - Schedule of Carrying Value and Estimated Fair Value of Financial Instruments (Details) - Fair value measured on recurring basis - USD ($) $ in Millions |
Feb. 29, 2024 |
Aug. 31, 2023 |
|---|---|---|
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Total assets at fair value | $ 586.7 | $ 405.5 |
| Level 1 | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Cash and cash equivalents | 578.9 | 397.9 |
| Level 2 | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Other financial instruments | 0.6 | 0.4 |
| Level 1,2 and 3 | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Assets in fair value hierarchy | 579.5 | 398.3 |
| Other investments | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Other investments | $ 7.2 | $ 7.2 |