Table:
|  |  | Years Ended December 31, |  |
| --- | --- | --- | --- |
|  | 2019 | 2018 | 2017 |
| Income from continuing operations | $56,495 | $147,149 | $136,101 |
| Income from continuing operations attributable to noncontrolling interest | 34 | 86 | — |
| Income from continuing operations attributable to Advanced Energy Industries, Inc. | $56,461 | $147,063 | $136,101 |
| Basic weighted-average common shares outstanding | 38,281 | 39,081 | 39,754 |
| Assumed exercise of dilutive stock options and restricted stock units | 214 | 271 | 422 |
| Diluted weighted-average common shares outstanding | 38,495 | 39,352 | 40,176 |
| Continuing operations: |  |  |  |
| Basic earnings per share | $ 1.47 | $ 3.76 | $  3.42 |
| Diluted earnings per share | $ 1.47 | $ 3.74 | $  3.39 |
Paragraphs:
ADVANCED ENERGY INDUSTRIES, INC. NOTES TO CONSOLIDATED FINANCIAL STATEMENTS – (continued) (in thousands, except per share amounts)
NOTE 6. EARNINGS PER SHARE
Basic earnings per share (“EPS”) is computed by dividing income available to common stockholders by the weighted-average number of common shares outstanding during the period. The computation of diluted EPS is similar to the computation of basic EPS except that the denominator is increased to include the number of additional common shares that would have been outstanding (using the if-converted and treasury stock methods), if our outstanding stock options and restricted stock units had been converted to common shares, and if such assumed conversion is dilutive.
The following is a reconciliation of the weighted-average shares outstanding used in the calculation of basic and diluted earnings per share for the years ended December 31, 2019, 2018 and 2017:
Question:
How was Basic earnings per share (“EPS”) computed by the company?
Answer: by dividing income available to common stockholders by the weighted-average number of common shares outstanding during the period.