cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to convert String value to java.lang.BigDecimal

Former Member
View Entire Topic
Former Member
0 Likes

I had a timestamp (DEC 21,7) field which is mapped as a BigDecimal and used the following

To represent 28th Dec 2005, 10:11:12 am:

BigDecimal x = new BigDecimal("20051228101112");

To add

 new BigDecimal("..").add( new BigDecimal(" .." );

Can you clarify on what do you mean on using it with context attributes ?