v3.24.2.u1
Consolidated Statements of Stockholders' Equity (Parenthetical) - $ / shares
shares in Millions
12 Months Ended
Jun. 30, 2024
Jun. 30, 2023
Jun. 30, 2022
Statement of Stockholders' Equity [Abstract]      
Treasury stock acquired (in shares) 2.5 0.2 0.1
Treasury stock reissued (in shares) 1.1 1.0 1.3
Dividends declared (in dollars per share) $ 3.20 $ 2.90 $ 2.56