XML 43 R31.htm IDEA: XBRL DOCUMENT v3.23.1
Net Earnings Per Share (Tables)
6 Months Ended
Apr. 30, 2023
Earnings Per Share [Abstract]  
Basic and Diluted Net Earnings Per Share Calculations
A reconciliation of the number of shares used for basic and diluted net EPS calculations is as follows:
 Three months ended April 30Six months ended April 30
 2023202220232022
 In millions, except per share amounts
Numerator:  
Net earnings$1,066 $1,000 $1,553 $2,086 
Denominator:  
Weighted-average shares used to compute basic net EPS991 1,050 990 1,066 
Dilutive effect of employee stock plans12 12 
Weighted-average shares used to compute diluted net EPS998 1,062 997 1,078 
Net earnings per share:  
Basic$1.08 $0.95 $1.57 $1.96 
Diluted$1.07 $0.94 $1.56 $1.94 
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.