on ‎2005 Dec 28 12:28 PM
Hi
How to convert String value to BigDecimal.
Thanks in Advance
Ananda
Request clarification before answering.
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 |
|---|---|
| 12 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.