Financial report context:
net sales of the retail segment grew to $ 1.185 billion during 2004 from $ 621 million and $ 283 million , in 2003 and 2002 , respectively . the increases in net sales during both 2004 and 2003 reflect the impact of new store openings for each fiscal year , including the opening of 21 new stores in 2004 and 25 new stores in 2003 . an increase in average revenue per store also contributed to the segment 2019s strong sales in fiscal 2004 . with an average of 76 stores open during 2004 , the retail segment achieved annualized revenue per store of approximately $ 15.6 million , as compared to $ 11.5 million in 2003 with a 54 store average and $ 10.2 million in 2002 with a 28 store average . as measured by the company 2019s operating segment reporting , the retail segment reported profit of $ 39 million during fiscal 2004 as compared to losses of $ 5 million and $ 22 million during 2003 and 2002 , respectively . this improvement is primarily attributable to the segment 2019s year-over-year increase in average quarterly revenue per store , the impact of opening new stores , and the segment 2019s year-over-year increase in net sales , which resulted in higher leverage on occupancy , depreciation and other fixed costs . expansion of the retail segment has required and will continue to require a substantial investment in fixed assets and related infrastructure , operating lease commitments , personnel , and other operating expenses . capital expenditures associated with the retail segment were $ 104 million in fiscal 2004 , bringing the total capital expenditures since inception of the retail segment to approximately $ 394 million . as of september 25 , 2004 , the retail segment had approximately 2100 employees and had outstanding operating lease commitments associated with retail store space and related facilities of approximately $ 436 million . the company would incur substantial costs should it choose to terminate its retail segment or close individual stores . such costs could adversely affect the company 2019s results of operations and financial condition . gross margin gross margin for the three fiscal years ended september 25 , 2004 are as follows ( in millions , except gross margin percentages ) : .

Financial table:
2004: net sales; 2003: $ 8279; 2002: $ 6207; column_4: $ 5742
2004: cost of sales; 2003: 6020; 2002: 4499; column_4: 4139
2004: gross margin; 2003: $ 2259; 2002: $ 1708; column_4: $ 1603
2004: gross margin percentage; 2003: 27.3% ( 27.3 % ); 2002: 27.5% ( 27.5 % ); column_4: 27.9% ( 27.9 % )

Additional report context:
gross margin declined in fiscal 2004 to 27.3% ( 27.3 % ) of net sales from 27.5% ( 27.5 % ) of net sales in 2003 . the company 2019s gross margin during fiscal 2004 declined due to an increase in mix towards lower margin ipod and ibook sales , pricing actions on certain power macintosh g5 models that were transitioned during the beginning of 2004 , higher warranty costs on certain portable macintosh products , and higher freight and duty costs during fiscal 2004 . these unfavorable factors were partially offset by an increase in direct sales and a 39% ( 39 % ) year-over-year increase in higher margin software sales . the company anticipates that its gross margin and the gross margin of the overall personal computer and consumer electronics industries will remain under pressure throughout fiscal 2005 in light of price competition , especially for the ipod product line . the company also expects to continue to incur air freight charges , which negatively impact gross margins on the imac and other products during the first quarter of 2005 and possibly beyond . the foregoing statements regarding the company 2019s expected gross margin during 2005 , general demand for personal computers , anticipated air freight charges , and future economic conditions are forward- looking . there can be no assurance that current gross margins will be maintained or targeted gross margin levels will be achieved . in general , gross margins and margins on individual products , including ipods , will remain under significant downward pressure due to a variety of factors , including continued industry wide .

Question: what was the greatest gross margin in millions for the three year period?
Answer: 2259