v3.25.4
Financial Instruments - Additional Information (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Jan. 31, 2026
Jan. 31, 2025
Jan. 31, 2026
Jan. 31, 2025
Apr. 30, 2025
Financial Instrument [Line Items]          
Sale/maturities of available-for-sale marketable securities $ 9.2 $ 7.7 $ 24.6 $ 24.5  
Unrealized gains relates to equity securities     11.7 15.1  
Not Designated as Hedge Instrument | Foreign currency forward contracts          
Financial Instrument [Line Items]          
Foreign currency gain (loss) 1.1 $ (1.7) (1.6) $ (2.0)  
Not Designated as Hedge Instrument | Foreign currency forward contracts | Derivatives Purchased          
Financial Instrument [Line Items]          
Derivative notional amount 68.3   68.3   $ 74.7
Not Designated as Hedge Instrument | Foreign currency forward contracts | Derivatives Sold          
Financial Instrument [Line Items]          
Derivative notional amount $ 21.4   $ 21.4   $ 42.6
Minimum          
Financial Instrument [Line Items]          
Marketable securities remaining maturity     1 month    
Maximum          
Financial Instrument [Line Items]          
Marketable securities remaining maturity     24 months