Re: Set up Constraint in Xlsx

Andreas Reichel <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Organization manticore-projects Co. Ltd.
Message-ID <39bbdc9c20f19bde12e16f38b86ce268d175960e.camel@manticore-projects.com>
Rob,

On Thu, 2020-05-21 at 19:39 -0600, Rob Sargent wrote:
> I guess I don't understand what is not "good" about extra digits after 
> 
> the decimal point?

Very simple, but frequent use case: Loading data from a Spreadsheet
file into a database.
In this case, the read value is a FLOAT which needs to be forced into
DECIMAL(?,?). And this can be a real nightmare, because most of the End
Users just copy/paste the content from other data sources into the
Spreadsheet without thinking about it.

Also, certain data, like currency amounts or interest rates permit only
a fixed number of digits.

Spreadsheets actually do lack a BigDecimal data type.

Cheers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.