2019
2018
2017
Cash provided by/(used in):
Operating activities
$ 1,461.8
$ 1,430.1
$ 1,234.5
Investing activities
(1,296.0)
(1,335.1)
(209.6)
Financing activities
177.0
(388.1)
(1,170.0)
financial condition liquidity and capital resources .
all currency amounts are in millions unless specified .
selected cash flows for the years ended december 31 2019 2018 and 2017 are as follows : .
operating activities — the growth in cash provided by operating activities in 2019 and in 2018 was primarily due to increased earnings net of non-cash expenses partially offset by higher cash taxes paid in 2019 most notably cash taxes paid on the gain on sale of the imaging businesses .
investing activities — cash used in investing activities during 2019 was primarily for business acquisitions most notably ipipeline and foundry partially offset by proceeds from the disposal of the gatan business and the imaging businesses .
cash used in investing activities during 2018 was primarily for business acquisitions most notably powerplan .
financing activities — cash provided by / -used in financing activities in all periods presented was primarily debt repayments / borrowings as well as dividends paid to stockholders .
cash provided by financing activities during 2019 was primarily from the issuance of $ 1 .
2 billion of senior notes partially offset by $ 865 .
0 of revolving debt repayments and to a lesser extent dividend payments .
cash used in financing activities during 2018 was primarily from the pay-down of revolving debt borrowings of $ 405 .
0 partially offset by the net issuance of senior notes of $ 200 .
0 and dividends paid to shareholders .
net working capital -current assets excluding cash less total current liabilities excluding debt was negative $ 505 .
4 at december 31 2019 compared to negative $ 200 .
4 at december 31 2018 due primarily to increased income taxes payable deferred revenue and the adoption of asc 842 partially offset by increased accounts receivable .
the increase in income taxes payable is due primarily to the approximately $ 200 .
0 of taxes incurred on the gain associated with the divestiture of gatan .
we expect to pay these taxes in the second quarter of 2020 .
the deferred revenue increase is due to a higher percentage of revenue from software and subscription-based services .
total debt excluding unamortized debt issuance costs was $ 5 .
3 billion at december 31 2019 -35 .
9 % of total capital compared to $ 5 .
0 billion at december 31 2018 -39 .
1 % of total capital .
our increased total debt at december 31 2019 compared to december 31 2018 was due primarily to the issuance of $ 500 .
0 of 2 .
35 % senior unsecured notes and $ 700 .
0 of 2 .
95 % senior unsecured notes partially offset by the pay-down of revolving debt borrowings of $ 865 .
0 .
on september 23 2016 we entered into a five-year unsecured credit facility as amended as of december 2 2016 -the “ 2016 facility ” with jpmorgan chase bank n .
a .
as administrative agent and a syndicate of lenders which replaced our previous unse- cured credit facility dated as of july 27 2012 as amended as of october 28 2015 -the “ 2012 facility ” .
the 2016 facility comprises a five year $ 2 .
5 billion revolving credit facility which includes availability of up to $ 150 .
0 for letters of credit .
we may also subject to compliance with specified conditions request term loans or additional revolving credit commitments in an aggregate amount not to exceed $ 500 .
0 .
the 2016 facility contains various affirmative and negative covenants which among other things limit our ability to incur new debt enter into certain mergers and acquisitions sell assets and grant liens make restricted payments -including the payment of dividends on our common stock and capital expenditures or change our line of business .
we also are subject to financial cove- nants which require us to limit our consolidated total leverage ratio and to maintain a consolidated interest coverage ratio .
the most restrictive covenant is the consolidated total leverage ratio which is limited to 3 .
5 to 1 .
the 2016 facility provides that the consolidated total leverage ratio may be increased no more than twice during the term of the 2016 facility to 4 .
00 to 1 for a consecutive four quarter fiscal period per increase -or for any portion of such four quarter fiscal period in which the maximum would be 4 .
25 to 1 .
in conjunction with the deltek acquisition in december of 2016 we increased the maximum consolidated total leverage ratio covenant to 4 .
25 to 1 through june 30 2017 and 4 .
00 to 1 through december 31 2017 .
at december 31 2019 we had $ 5 .
3 billion of senior unsecured notes and $ 0 .
0 of outstanding revolver borrowings .
in addition we had $ 7 .
7 of other debt in the form of finance leases and several smaller facilities that allow for borrowings or the issuance of letters of credit in foreign locations to support our non-u .
s .
businesses .
we had $ 74 .
0 of outstanding letters of credit at december 31 2019 of which $ 35 .
8 was covered by our lending group thereby reducing our revolving credit capacity commensurately .
we may redeem some or all of our senior secured notes at any time or from time to time at 100 % of their principal amount plus a make-whole premium based on a spread to u .
s .
treasury securities .
we were in compliance with all debt covenants related to our credit facility throughout the years ended december 31 2019 and 2018 .
see note 8 of the notes to consolidated financial statements included in this annual report for additional information regarding our credit facility and senior notes .
cash and cash equivalents at our foreign subsidiaries at december 31 2019 totaled $ 291 .
8 as compared to $ 339 .
0 at december 31 2018 a decrease of 13 .
9 % .
the decrease was due primarily to the repatriation of $ 290 .
6 during the year and cash used in the acquisition of foundry partially offset by cash generated from foreign operations .
we intend to repatriate substantially all historical and future earnings subject to the deemed repatriation tax .
capital expenditures of $ 52 .
7 $ 49 .
1 and $ 48 .
8 were incurred during 2019 2018 and 2017 respectively .
capitalized software expenditures of $ 10 .
2 $ 9 .
5 and $ 10 .
8 were incurred during 2019 2018 and 2017 respectively .
capital expenditures and capitalized software expenditures were relatively consistent in 2019 as compared to 2018 and 2017 .
in the future we expect the aggregate of capital expenditures and capitalized software expenditures as a percentage of annual net revenues to be between 1 .
0 % and 1 .
5 % .

Question: Which year did operating activities provide the most cash?
Answer: 2019