J
jeffchongonly
Hi all,
I receive an excel sheet , with a column which is format in number.
The value that i seen from the screen is '1'. Later, when i save the
file in . xml format (File->Save As, choose 'XML Spredsheet' .xml' ) i
found that the '1' had become '0.99999999999999978'.
I relook into the spread sheet again, the value is really show in '1'
in the formula bar, and double check on the format it is formatted in
number with zero decimal place.
I don't have a clue where the '0.99999999999999978' is come from ?
Could it be an excel bug ? or due to user is using some kind of
different IME to input the value '1' ?
I paste part of the XML contents below,
If you scroll down into last few rows, u can see that this line show
number as '0.99999999999999978'
<Cell ss:StyleID="s69"><Data ss:Type="Number">0.99999999999999978</
Data></Cell>
kind regards,
TOTO
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-comffice:spreadsheet"
xmlns="urn:schemas-microsoft-comfficeffice"
xmlns:x="urn:schemas-microsoft-comffice:excel"
xmlns:ss="urn:schemas-microsoft-comffice:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-comfficeffice">
<Author>ketant</Author>
<LastAuthor>User</LastAuthor>
<Created>2006-03-10T09:38:56Z</Created>
<LastSaved>2009-03-10T02:57:59Z</LastSaved>
<Company>Hewlett-Packard</Company>
<Version>11.9999</Version>
</DocumentProperties>
<ExcelWorkbook xmlns="urn:schemas-microsoft-comffice:excel">
<WindowHeight>11640</WindowHeight>
<WindowWidth>15480</WindowWidth>
<WindowTopX>240</WindowTopX>
<WindowTopY>315</WindowTopY>
<ActiveSheet>1</ActiveSheet>
<FirstVisibleSheet>1</FirstVisibleSheet>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font x:Family="Swiss"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s41" ss:Name="³£¹æ_mapping">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Helv" x:Family="Swiss"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s65">
<Borders/>
</Style>
<Style ss:ID="s66">
<Borders/>
<Interior/>
</Style>
<Style ss:ID="s67">
<Borders/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s68">
<Borders/>
<NumberFormat ss:Format="_(* #,##0.00_);_(* \(#,##0.00\);_(* "-
"??_);_(@_)"/>
</Style>
<Style ss:ID="s69">
<Borders/>
<NumberFormat ss:Format="0"/>
</Style>
<Style ss:ID="s70">
<Borders/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s71" ssarent="s41">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font x:Family="Swiss" ss:Size="9" ss:Color="#000000"/>
<Interior/>
<NumberFormat ss:Format="mm\/dd\/yyyy"/>
</Style>
</Styles>
<Worksheet ss:Name="VERSION">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1"
x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">NAME HIDDEN DOCUMENT</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-comffice:excel">
<Visible>SheetHidden</Visible>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="MVC_SHIPMENT_UPLOAD">
<Table ss:ExpandedColumnCount="15" ss:ExpandedRowCount="501"
x:FullColumns="1"
x:FullRows="1" ss:StyleID="s65">
<Column ss:StyleID="s65" ss:Width="51.75"/>
<Column ss:StyleID="s65" ss:Width="96"/>
<Column ss:StyleID="s65" ss:Width="87.75" ss:Span="1"/>
<Column ss:Index="5" ss:StyleID="s65" ss:Width="86.25"/>
<Column ss:StyleID="s65" ss:Width="78.75"/>
<Column ss:StyleID="s65" ss:Width="39.75"/>
<Column ss:StyleID="s65" ss:Width="108.75"/>
<Column ss:StyleID="s65" ss:Width="168"/>
<Column ss:StyleID="s65" ss:Width="176.25"/>
<Column ss:StyleID="s65" ss:Width="63.75"/>
<Column ss:StyleID="s65" ss:Width="75.75"/>
<Column ss:StyleID="s65" ss:Width="114.75"/>
<Column ss:StyleID="s65" ss:Width="126"/>
<Row>
<Cell><Data ss:Type="String">COUNTRY</Data></Cell>
<Cell><Data ss:Type="String">MONTH</Data></Cell>
<Cell><Data ss:Type="String">YEAR</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">RNAME</Data></Cell>
<Cell><Data ss:Type="String">ACCNAME</Data></Cell>
<Cell><Data ss:Type="String">DNUMBER</Data></Cell>
<Cell><Data ss:Type="String">SID</Data></Cell>
<Cell><Data ss:Type="String">SQTY</Data></Cell>
<Cell><Data ss:Type="String">PRICE_LC</Data></Cell>
<Cell><Data ss:Type="String">END_USER_PRICE_USD</Data></Cell>
<Cell><Data ss:Type="String">INV_NO</Data></Cell>
<Cell><Data ss:Type="String">INV_DATE</Data></Cell>
<Cell><Data ss:Type="String">DORDER_NO</Data></Cell>
<Cell><Data ss:Type="String">DORDER_DATE</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">ERROR</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">China</Data></Cell>
<Cell><Data ss:Type="String">FEB</Data></Cell>
<Cell><Data ss:Type="Number">2009</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxyy company</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxtt uni</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">a-bb-ccc-00000</
Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">abc1234</Data></
Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">8</Data></Cell>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s70"><Data ss:Type="String">130006265003411321</
Data></Cell>
<Cell ss:StyleID="s71"><Data
ss:Type="DateTime">2009-02-25T00:00:00.000</Data></Cell>
<Cell ss:StyleID="s69"/>
<Cell ss:StyleID="s67"/>
</Row>
<Row>
<Cell><Data ss:Type="String">China</Data></Cell>
<Cell><Data ss:Type="String">FEB</Data></Cell>
<Cell><Data ss:Type="Number">2009</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxyy company</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxtt uni</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">a-bb-ccc-00000</
Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">abc1234</Data></
Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">0.99999999999999978</
Data></Cell>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s70"><Data ss:Type="String">130006265003411321</
Data></Cell>
<Cell ss:StyleID="s71"><Data
ss:Type="DateTime">2009-02-25T00:00:00.000</Data></Cell>
<Cell ss:StyleID="s69"/>
<Cell ss:StyleID="s67"/>
</Row>
....
I receive an excel sheet , with a column which is format in number.
The value that i seen from the screen is '1'. Later, when i save the
file in . xml format (File->Save As, choose 'XML Spredsheet' .xml' ) i
found that the '1' had become '0.99999999999999978'.
I relook into the spread sheet again, the value is really show in '1'
in the formula bar, and double check on the format it is formatted in
number with zero decimal place.
I don't have a clue where the '0.99999999999999978' is come from ?
Could it be an excel bug ? or due to user is using some kind of
different IME to input the value '1' ?
I paste part of the XML contents below,
If you scroll down into last few rows, u can see that this line show
number as '0.99999999999999978'
<Cell ss:StyleID="s69"><Data ss:Type="Number">0.99999999999999978</
Data></Cell>
kind regards,
TOTO
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-comffice:spreadsheet"
xmlns="urn:schemas-microsoft-comfficeffice"
xmlns:x="urn:schemas-microsoft-comffice:excel"
xmlns:ss="urn:schemas-microsoft-comffice:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-comfficeffice">
<Author>ketant</Author>
<LastAuthor>User</LastAuthor>
<Created>2006-03-10T09:38:56Z</Created>
<LastSaved>2009-03-10T02:57:59Z</LastSaved>
<Company>Hewlett-Packard</Company>
<Version>11.9999</Version>
</DocumentProperties>
<ExcelWorkbook xmlns="urn:schemas-microsoft-comffice:excel">
<WindowHeight>11640</WindowHeight>
<WindowWidth>15480</WindowWidth>
<WindowTopX>240</WindowTopX>
<WindowTopY>315</WindowTopY>
<ActiveSheet>1</ActiveSheet>
<FirstVisibleSheet>1</FirstVisibleSheet>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font x:Family="Swiss"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s41" ss:Name="³£¹æ_mapping">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Helv" x:Family="Swiss"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s65">
<Borders/>
</Style>
<Style ss:ID="s66">
<Borders/>
<Interior/>
</Style>
<Style ss:ID="s67">
<Borders/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s68">
<Borders/>
<NumberFormat ss:Format="_(* #,##0.00_);_(* \(#,##0.00\);_(* "-
"??_);_(@_)"/>
</Style>
<Style ss:ID="s69">
<Borders/>
<NumberFormat ss:Format="0"/>
</Style>
<Style ss:ID="s70">
<Borders/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s71" ssarent="s41">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font x:Family="Swiss" ss:Size="9" ss:Color="#000000"/>
<Interior/>
<NumberFormat ss:Format="mm\/dd\/yyyy"/>
</Style>
</Styles>
<Worksheet ss:Name="VERSION">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1"
x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">NAME HIDDEN DOCUMENT</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-comffice:excel">
<Visible>SheetHidden</Visible>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="MVC_SHIPMENT_UPLOAD">
<Table ss:ExpandedColumnCount="15" ss:ExpandedRowCount="501"
x:FullColumns="1"
x:FullRows="1" ss:StyleID="s65">
<Column ss:StyleID="s65" ss:Width="51.75"/>
<Column ss:StyleID="s65" ss:Width="96"/>
<Column ss:StyleID="s65" ss:Width="87.75" ss:Span="1"/>
<Column ss:Index="5" ss:StyleID="s65" ss:Width="86.25"/>
<Column ss:StyleID="s65" ss:Width="78.75"/>
<Column ss:StyleID="s65" ss:Width="39.75"/>
<Column ss:StyleID="s65" ss:Width="108.75"/>
<Column ss:StyleID="s65" ss:Width="168"/>
<Column ss:StyleID="s65" ss:Width="176.25"/>
<Column ss:StyleID="s65" ss:Width="63.75"/>
<Column ss:StyleID="s65" ss:Width="75.75"/>
<Column ss:StyleID="s65" ss:Width="114.75"/>
<Column ss:StyleID="s65" ss:Width="126"/>
<Row>
<Cell><Data ss:Type="String">COUNTRY</Data></Cell>
<Cell><Data ss:Type="String">MONTH</Data></Cell>
<Cell><Data ss:Type="String">YEAR</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">RNAME</Data></Cell>
<Cell><Data ss:Type="String">ACCNAME</Data></Cell>
<Cell><Data ss:Type="String">DNUMBER</Data></Cell>
<Cell><Data ss:Type="String">SID</Data></Cell>
<Cell><Data ss:Type="String">SQTY</Data></Cell>
<Cell><Data ss:Type="String">PRICE_LC</Data></Cell>
<Cell><Data ss:Type="String">END_USER_PRICE_USD</Data></Cell>
<Cell><Data ss:Type="String">INV_NO</Data></Cell>
<Cell><Data ss:Type="String">INV_DATE</Data></Cell>
<Cell><Data ss:Type="String">DORDER_NO</Data></Cell>
<Cell><Data ss:Type="String">DORDER_DATE</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">ERROR</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">China</Data></Cell>
<Cell><Data ss:Type="String">FEB</Data></Cell>
<Cell><Data ss:Type="Number">2009</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxyy company</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxtt uni</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">a-bb-ccc-00000</
Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">abc1234</Data></
Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">8</Data></Cell>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s70"><Data ss:Type="String">130006265003411321</
Data></Cell>
<Cell ss:StyleID="s71"><Data
ss:Type="DateTime">2009-02-25T00:00:00.000</Data></Cell>
<Cell ss:StyleID="s69"/>
<Cell ss:StyleID="s67"/>
</Row>
<Row>
<Cell><Data ss:Type="String">China</Data></Cell>
<Cell><Data ss:Type="String">FEB</Data></Cell>
<Cell><Data ss:Type="Number">2009</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxyy company</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">xxtt uni</Data></
Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">a-bb-ccc-00000</
Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">abc1234</Data></
Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">0.99999999999999978</
Data></Cell>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s70"><Data ss:Type="String">130006265003411321</
Data></Cell>
<Cell ss:StyleID="s71"><Data
ss:Type="DateTime">2009-02-25T00:00:00.000</Data></Cell>
<Cell ss:StyleID="s69"/>
<Cell ss:StyleID="s67"/>
</Row>
....