XML 47 R33.htm IDEA: XBRL DOCUMENT v3.24.2.u1
Earnings Per Share (Tables)
9 Months Ended
Jul. 31, 2024
Earnings Per Share [Abstract]  
Schedule of Reconciliation of the Number of Shares Used for Basic and Diluted Net EPS Calculations
A reconciliation of the number of shares used for basic and diluted net EPS calculations is as follows:
 Three months ended July 31Nine months ended July 31
 2024202320242023
 In millions, except per share amounts
Numerator:  
Net earnings$640 $766 $1,869 $2,289 
Denominator:  
Weighted-average shares used to compute basic net EPS979 993 986 991 
Dilutive effect of employee stock plans11 
Weighted-average shares used to compute diluted net EPS990 1,002 994 999 
Net earnings per share:  
Basic$0.65 $0.77 $1.90 $2.31 
Diluted$0.65 $0.76 $1.88 $2.29 
Anti-dilutive weighted-average stock-based compensation awards(1)
— 
(1)HP excludes from the calculation of diluted net EPS stock options and restricted stock units where the assumed proceeds exceed the average market price, because their effect would be anti-dilutive. The assumed proceeds of a stock option include the sum of its exercise price and average unrecognized compensation cost. The assumed proceeds of a restricted stock unit represent unrecognized compensation cost.