C
cliodhna.hurst
Hi,
I need to store very small numbers in my database, generally something
like 1.2516E-128. I'm using BigDecimal is Java to manipulate these
numbers however when storing them in MS SQL server as a double they are
converted to 0. SQL Server will only allow a a double with a scale of
maximum size 18.
I've also tried to use the Float object to store and manipulate the
numbers in Java instead of BigDecimal. Once they are smaller than E-47
however, Java stores them as 0 also.
Does anyone know of a way to manipulate these numbers in Java and then
store them in MS SQL Server?
Thanks
Cli
I need to store very small numbers in my database, generally something
like 1.2516E-128. I'm using BigDecimal is Java to manipulate these
numbers however when storing them in MS SQL server as a double they are
converted to 0. SQL Server will only allow a a double with a scale of
maximum size 18.
I've also tried to use the Float object to store and manipulate the
numbers in Java instead of BigDecimal. Once they are smaller than E-47
however, Java stores them as 0 also.
Does anyone know of a way to manipulate these numbers in Java and then
store them in MS SQL Server?
Thanks
Cli