v3.26.1
Earnings Per Share (Tables)
6 Months Ended
Apr. 30, 2026
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 April 30Six months ended April 30
 2026202520262025
 In millions, except per share amounts
Numerator:  
Net earnings$450 $406 $995 $971 
Denominator:  
Weighted-average shares used to compute basic net EPS922 950 924 949 
Dilutive effect of employee stock plans
Weighted-average shares used to compute diluted net EPS925 956 928 956 
Net earnings per share:  
Basic$0.49 $0.43 $1.08 $1.02 
Diluted$0.49 $0.42 $1.07 $1.02 
Anti-dilutive weighted-average stock plans(1)
20 10 19 
(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 average unrecognized compensation cost.