on 10-10-2006 7:37 PM
Hi,
1). I have a big decimal input field, which I need to make it to default to blank (not even zeros).
2).And also I have another big decimal field, when I am doing calculation, I get 93,00076575678678687678678678236 like that. How do I set that field only to take 93,000 ?.
Thanks,
Sunita.
sunita,
If you are using type BigDecimal, then its default value is null (it is object, not primitive type), so you get [1] automatically.
For second, check API for BigDecimal, method http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigDecimal.html#setScale(int, int)
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunita,
For a documentation on simple types, you can go through <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/08/ed5ceef6604b41bbacee5dcd153a7b/frameset.htm">this</a>.
In your case, create a simple type and make the "Built-In Type" as decimal. For the property category "Length Constraints", specify the "Total Digits" and "Fraction Digits" properties.
Regards,
Satyajit.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.