the company orders components for its products and builds inventory in advance of product shipments . because the company 2019s markets are volatile and subject to rapid technology and price changes , there is a risk the company will forecast incorrectly and produce or order from third-parties excess or insufficient inventories of particular products or components . the company 2019s operating results and financial condition in the past have been and may in the future be materially adversely affected by the company 2019s ability to manage its inventory levels and outstanding purchase commitments and to respond to short-term shifts in customer demand patterns . gross margin declined in 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 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 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 . operating expenses operating expenses for each of the last three fiscal years are as follows ( in millions , except for percentages ) : september 24 , september 25 , september 27 , 2005 2004 2003 .

Table:
 | september 24 2005 | september 25 2004 | september 27 2003
research and development | $ 534 | $ 489 | $ 471
percentage of net sales | 4% ( 4 % ) | 6% ( 6 % ) | 8% ( 8 % )
selling general and administrative expenses | $ 1859 | $ 1421 | $ 1212
percentage of net sales | 13% ( 13 % ) | 17% ( 17 % ) | 20% ( 20 % )
restructuring costs | $ 2014 | $ 23 | $ 26
research and development ( r&d ) the company recognizes that focused investments in r&d are critical to its future growth and competitive position in the marketplace and are directly related to timely development of new and enhanced products that are central to the company 2019s core business strategy .
the company has historically relied upon innovation to remain competitive .
r&d expense amounted to approximately 4% ( 4 % ) of total net sales during 2005 down from 6% ( 6 % ) and 8% ( 8 % ) of total net sales in 2004 and 2003 , respectively .
this decrease is due to the significant increase of 68% ( 68 % ) in total net sales of the company for 2005 .
although r&d expense decreased as a percentage of total net sales in 2005 , actual expense for r&d in 2005 increased $ 45 million or 9% ( 9 % ) from 2004 , which follows an $ 18 million or 4% ( 4 % ) increase in 2004 compared to 2003 .
the overall increase in r&d expense relates primarily to increased headcount and support for new product development activities and the impact of employee salary increases in 2005 .
r&d expense does not include capitalized software development costs of approximately $ 29.7 million related to the development of mac os x tiger during 2005 ; $ 4.5 million related to the development of mac os x tiger and $ 2.3 million related to the development of filemaker pro 7 in 2004 ; and $ 14.7 million related to the development of mac os x panther in 2003 .
further information related to the company 2019s capitalization of software development costs may be found in part ii , item 8 of this form 10-k at note 1 of notes to consolidated financial statements .
selling , general , and administrative expense ( sg&a ) expenditures for sg&a increased $ 438 million or 31% ( 31 % ) during 2005 compared to 2004 .
these increases are due primarily to the company 2019s continued expansion of its retail segment in both domestic and international markets , a current year increase in discretionary spending on marketing and advertising , and higher direct and channel selling expenses resulting from the increase in net sales and employee salary .

Question: what was the average research and development expense for fye 2003-2005 , in millions ? $ 534 $ 489 $ 471
Answer: 501
Calculation: table_average(research and development, none)