cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Type Representation - External Representation

MarkusKlein
Active Contributor
0 Kudos

Hello,

i have a context attribute of build-in type decimal. Now when the attribute has the value e.g. 1500.00 it does show it as "1.500,5". Unfortunatelly i would like to show it as "1.500,50". Any idea how this can be achived?

thx

Markus

Accepted Solutions (1)

Accepted Solutions (1)

MarkusKlein
Active Contributor
0 Kudos

ahh this way does the external representation formating work..

"0,000.00" makes a 1.500,00... nice ... should have been documented somewhere

Markus

Former Member
0 Kudos

Was just looking it up for you.

Java doc in Class DecimalFormat (http://java.sun.com/j2se/1.4.2/docs/api/)

Seems like you can also use # instead of 0.

Regards, Roelof

MarkusKlein
Active Contributor
0 Kudos

Hello Roelof

thx for the info.

You are right the correct mask is "#" and not "0".

when i use "0,000.00" as mask and a value is lower than 1000 i am getting "0.345,70" which is wrong. When i am using "#,###.##" instead it does totaly work.

regards,

Markus

MarkusKlein
Active Contributor
0 Kudos

The final solution is

"#,###,###,##0.00"

The "0" before the dot is neccessary, else any value of "0" would be displayed as ",00".

regards,

Markus

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Markus,

Hope this will help u

/people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java

regards

Sumit