on 12-28-2005 12:28 PM
Hi
How to convert String value to BigDecimal.
Thanks in Advance
Ananda
Use BigDecimal("StringValue") constructor. Here string value should represent a valid number
example
BigDecimal myBigNum = new BigDecimal("123654789654");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
new BigDecimal(String value)
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.