<?xml version="1.0" encoding="utf-8"?>
<InstanceReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Version>2.0.0.10</Version>
  <hasSegments>false</hasSegments>
  <ReportName>14. LONG-TERM DEBT</ReportName>
  <ReportLongName>006130 - Disclosure - 14. LONG-TERM DEBT</ReportLongName>
  <DisplayLabelColumn>true</DisplayLabelColumn>
  <ShowElementNames>false</ShowElementNames>
  <RoundingOption />
  <HasEmbeddedReports>false</HasEmbeddedReports>
  <Columns>
    <Column>
      <LabelColumn>false</LabelColumn>
      <Id>1</Id>
      <Labels>
        <Label Id="1" Label="6 Months Ended" />
        <Label Id="2" Label="Apr. 30, 2010" />
      </Labels>
      <CurrencyCode>usd</CurrencyCode>
      <CurrencySymbol>$</CurrencySymbol>
      <FootnoteIndexer />
      <hasSegments>false</hasSegments>
      <hasScenarios>false</hasScenarios>
      <Segments />
      <Scenarios />
      <Units>
        <Unit>
          <UnitID>u000</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>u001</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>u002</UnitID>
          <UnitType>Divide</UnitType>
          <NumeratorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </NumeratorMeasure>
          <DenominatorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </DenominatorMeasure>
          <Scale>0</Scale>
        </Unit>
      </Units>
    </Column>
  </Columns>
  <Rows>
    <Row>
      <Id>2</Id>
      <Label>Notes To Financial Statements [Abstract]</Label>
      <Level>0</Level>
      <ElementName>a_NotesToFinancialStatementsAbstract</ElementName>
      <ElementPrefix>a</ElementPrefix>
      <IsBaseElement>false</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ElementDataType>string</ElementDataType>
      <ShortDefinition>No definition available.</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>true</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole />
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText />
          <NonNumericTextHeader />
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDefenition>No definition available.</ElementDefenition>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
    <Row>
      <Id>3</Id>
      <Label>LONG-TERM DEBT</Label>
      <Level>1</Level>
      <ElementName>us-gaap_LongTermDebtTextBlock</ElementName>
      <ElementPrefix>us-gaap</ElementPrefix>
      <IsBaseElement>true</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ElementDataType>string</ElementDataType>
      <ShortDefinition>No definition available.</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>false</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole>terselabel</PreferredLabelRole>
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText>&lt;div&gt;       &lt;div&gt;         &lt;div&gt;           &lt;table align="center" border="0" cellpadding="0" cellspacing="0" id="hangingindent_0" width="100%" style="FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt; &lt;tr valign="top"&gt;               &lt;td style="WIDTH: 12.25pt"&gt;                 &lt;div&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&amp;#160;  &lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td&gt;                 &lt;div align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;14.  LONG-TERM DEBT&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;             &lt;/tr&gt;&lt;/table&gt;         &lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-STYLE: italic; FONT-FAMILY: Times New Roman"&gt;Senior  Notes&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;The  following table summarizes the company&amp;#8217;s senior notes:&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div align="left"&gt;           &lt;table cellpadding="0" cellspacing="0" width="100%" style="FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt; &lt;tr&gt;               &lt;td valign="bottom"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;  &lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td colspan="2" valign="bottom"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="center"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;April  30,&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td colspan="2" valign="bottom"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="center"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;October  31,&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;tr&gt;               &lt;td valign="bottom" style="PADDING-BOTTOM: 2px"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;  &lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" style="PADDING-BOTTOM: 2px"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td colspan="2" valign="bottom" style="BORDER-BOTTOM: black 2px solid"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="center"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;2010&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" style="PADDING-BOTTOM: 2px; TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" style="PADDING-BOTTOM: 2px"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td colspan="2" valign="bottom" style="BORDER-BOTTOM: black 2px solid"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="center"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;2009&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" style="PADDING-BOTTOM: 2px; TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;tr&gt;               &lt;td valign="bottom"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;  &lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td colspan="6" valign="bottom"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="center"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;(in&amp;#160;millions)&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;tr&gt;               &lt;td align="left" valign="bottom" width="76%"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 18pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;2017  Senior Notes&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;$&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;635&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;$&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;637&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;tr&gt;               &lt;td align="left" valign="bottom" width="76%"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 18pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;2015  Senior Notes&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;505&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;500&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;tr&gt;               &lt;td align="left" valign="bottom" width="76%"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 18pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;2012  Senior Notes&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;253&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;251&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;tr&gt;               &lt;td align="left" valign="bottom" width="76%" style="PADDING-BOTTOM: 4px"&gt;                 &lt;div style="DISPLAY: block; MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&amp;#160;&amp;#160;Total&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%" style="PADDING-BOTTOM: 4px"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="BORDER-BOTTOM: black 4px double; TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;$&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="BORDER-BOTTOM: black 4px double; TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;1,393&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="PADDING-BOTTOM: 4px; TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td align="right" valign="bottom" width="1%" style="PADDING-BOTTOM: 4px"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="1%" style="BORDER-BOTTOM: black 4px double; TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;$&lt;/font&gt;&lt;/td&gt;               &lt;td valign="bottom" width="9%" style="BORDER-BOTTOM: black 4px double; TEXT-ALIGN: right"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;1,388&lt;/font&gt;&lt;/td&gt;               &lt;td nowrap="nowrap" valign="bottom" width="1%" style="PADDING-BOTTOM: 4px; TEXT-ALIGN: left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: times new roman"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;             &lt;/tr&gt;&lt;/table&gt;         &lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;2017  Senior Notes&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&amp;#160;In  October&amp;#160;2007, the company issued an aggregate principal amount of  $600&amp;#160;million in senior notes. The senior notes were issued at 99.60% of  their principal amount. The notes will mature on November&amp;#160;1, 2017, and bear  interest at a fixed rate of 6.50% per annum. The interest is payable  semi-annually on May&amp;#160;1&lt;font style="DISPLAY: inline; FONT-SIZE: 70%; VERTICAL-ALIGN: text-top"&gt;st&lt;/font&gt; and  November&amp;#160;1&lt;font style="DISPLAY: inline; FONT-SIZE: 70%; VERTICAL-ALIGN: text-top"&gt;st &lt;/font&gt;of  each year and payments commenced on May&amp;#160;1, 2008.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;On  November&amp;#160;25, 2008, we terminated the two remaining interest rate swap  contracts associated with our 2017 senior notes that represented the notional  amount of $400&amp;#160;million. The asset value upon termination was approximately  $43&amp;#160;million. The proceeds were recorded as operating cash flows and the  gain is being deferred and amortized over the remaining life of the senior  notes.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;2015  Senior Notes&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  September&amp;#160;2009, the company issued an aggregate principal amount of  $500&amp;#160;million in senior notes. The senior notes were issued at 99.69% of  their principal amount. The notes will mature on September&amp;#160;14, 2015, and  bear interest at a fixed rate of 5.50% per annum. The interest is payable  semi-annually on March&amp;#160;14&lt;font style="DISPLAY: inline; FONT-SIZE: 70%; VERTICAL-ALIGN: text-top"&gt;th&lt;/font&gt; and  September&amp;#160;14&lt;font style="DISPLAY: inline; FONT-SIZE: 70%; VERTICAL-ALIGN: text-top"&gt;th &lt;/font&gt;of  each year, payments commenced on March&amp;#160;14, 2010.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;2012  Senior Notes&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  September&amp;#160;2009, the company also issued an aggregate principal amount of  $250&amp;#160;million in senior notes. The senior notes were issued at 99.91% of  their principal amount. The notes will mature on September&amp;#160;14, 2012, and  bear interest at a fixed rate of 4.45% per annum. The interest is payable  semi-annually on March&amp;#160;14&lt;font style="DISPLAY: inline; FONT-SIZE: 70%; VERTICAL-ALIGN: text-top"&gt;th&lt;/font&gt; and  September&amp;#160;14&lt;font style="DISPLAY: inline; FONT-SIZE: 70%; VERTICAL-ALIGN: text-top"&gt;th &lt;/font&gt;of  each year, payments commenced on March&amp;#160;14, 2010.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;All notes  issued are unsecured and rank equally in right of payment with all of Agilent&amp;#8217;s  other senior unsecured indebtedness. The company incurred issuance costs of $5  million in connection with the 2017 senior notes and a total of $5 million in  connection with the 2015 and 2012 senior notes. These costs were capitalized in  other assets on the condensed consolidated balance sheet and the costs are being  amortized to interest expense over the term of the senior notes.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;Upon the  closing of the offering of the 2015 and 2012 senior notes, we entered into  interest rate swaps with an aggregate notional amount of $750 million. Under the  interest rate swaps, we will receive fixed-rate interest payments and will make  payments based on the U.S. dollar LIBOR plus 253 basis points and 257.6 basis  points with respect to the 2015 and 2012 senior notes, respectively. The  economic effect of these swaps will be to convert the fixed-rate interest  expense on the senior notes to a variable LIBOR-based interest rate. The hedging  relationship qualifies for the shortcut method of assessing hedge effectiveness,  and consequently we do not expect any ineffectiveness during the life of the  swap and any movement in the value of the swap would be reflected in the  movement in fair value of the senior notes. At April 30, 2010, the fair value of  the swaps on 2015 and 2012 senior notes was an asset of $10 million with a  corresponding increase in carrying value of the senior notes.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-STYLE: italic; FONT-FAMILY: Times New Roman"&gt;Other  Debt&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&amp;#160;&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;On  August&amp;#160;11, 2008, a consolidated wholly-owned subsidiary of Agilent,  borrowed Indian Rupees equivalent to $15 million from Citibank N.A. to finance a  capital project in India. On March 30, 2010 the debt was repaid in  full.&lt;/font&gt;&lt;/div&gt;       &lt;/div&gt;     &lt;/div&gt;</NonNumbericText>
          <NonNumericTextHeader>&amp;#160;                                                 14.  LONG-TERM DEBT                                              &amp;#160;         Senior  Notes           </NonNumericTextHeader>
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDefenition>This element may be used as a single block of text to encapsulate the entire disclosure for long-term borrowings including data and tables.</ElementDefenition>
      <ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef
 -Publisher SEC
 -Name Regulation S-X (SX)
 -Number 210
 -Section 02
 -Paragraph 22
 -Article 5

</ElementReferences>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
  </Rows>
  <Footnotes />
  <ComparabilityReport>false</ComparabilityReport>
  <NumberOfCols>1</NumberOfCols>
  <NumberOfRows>2</NumberOfRows>
  <HasScenarios>false</HasScenarios>
  <MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel>
  <SharesRoundingLevel>UnKnown</SharesRoundingLevel>
  <PerShareRoundingLevel>UnKnown</PerShareRoundingLevel>
  <HasPureData>false</HasPureData>
  <SharesShouldBeRounded>true</SharesShouldBeRounded>
</InstanceReport>
