poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krishna81m <krishna...@gmail.com>
Subject Re: What is the correct way of preserving decimal precision while entering and saving Big Decimal values using Apache POI
Date Sun, 28 Feb 2010 17:55:27 GMT

Alright, found that when I save an excel sell as cell.setCellValue(double)
and retrieve it as a NumericCell even as a BigDecimal cell, the precision
and scale are lost. The only solution is to save a floating point value in a
cell as a string and then read them as a BigDecimal.

This is not a great idea.
View this message in context: http://old.nabble.com/What-is-the-correct-way-of-preserving-decimal-precision-when-saving-and-retrieving-Big-Decimal-values-using-Apache-POI-tp27714660p27736758.html
Sent from the POI - Dev mailing list archive at Nabble.com.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message