Jump to content
We've recently updated our Privacy Statement, available here ×

How to convert value 1000.00 to 100,00.00?


kuhazwan7

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't know your pattern requirement but why it should be 10x so much like before?!?!?

So in Germany we have a decimal separator (the comma ",") and a thousands separator (the dot ".") - so vice versa as in java/english countries by default.

The number "one thousand" (1000)  is represented as string "1.000,00" when I use this as pattern;: "###,###.00" 

So not sure what you actually want - just take a look here. (https://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html) and be aware that your textfield is also passed as BigDecimal/double value from your database query and not as casted string.

hth + regards 

C-Box

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...