XML 40 R30.htm IDEA: XBRL DOCUMENT
v3.25.2

Earnings Per Share (Tables) | 9 Months Ended
--- | ---
Jul. 31, 2025
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 31 |  | Nine months ended July 31
| 2025 |  | 2024 |  | 2025 |  | 2024
| In millions, except per share amounts
Numerator: |  |  |  |  |  |  |
Net earnings | $ | 763 |  |  | $ | 640 |  |  | $ | 1,734 |  |  | $ | 1,869 |
Denominator: |  |  |  |  |  |  |
Weighted-average shares used to compute basic net EPS | 947 |  |  | 979 |  |  | 948 |  |  | 986 |
Dilutive effect of employee stock plans | 7 |  |  | 11 |  |  | 7 |  |  | 8 |
Weighted-average shares used to compute diluted net EPS | 954 |  |  | 990 |  |  | 955 |  |  | 994 |
Net earnings per share: |  |  |  |  |  |  |
Basic | $ | 0.81 |  |  | $ | 0.65 |  |  | $ | 1.83 |  |  | $ | 1.90 |
Diluted | $ | 0.80 |  |  | $ | 0.65 |  |  | $ | 1.82 |  |  | $ | 1.88 |
Anti-dilutive effect of employee stock plans(1) | 14 |  |  | — |  |  | 8 |  |  | 2 |
(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.

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 260 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482662/260-10-50-1 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration