Showing results for 
Search instead for 
Did you mean: 

In VC WEBDYNPRO compiler mode, how to set decimal places to 2

Former Member
0 Kudos

The compiler mode is webdynpro,

The ivew table column's data type is num type,

The column show a curreny data.

Now the problem is when the num data is like a number as "1000.00",the ".00" will not show,but when the value is "1000.01" ,it show "1000.01". I want it always show the formatting like "X.XX".

There is also no formatting property to set in the column like in flash compiler mode then i can set decimal places to 2.

What should i do?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos


You can use Decimal Format Class and declare something like:

DecimalFormat df = new DecimalFormat("#,##0.00;(#,##0.00)");


You'll have the two decimals...!!

Good Luck and regards,

Maria Margarita Monteverde