• Post Reply Bookmark Topic Watch Topic
  • New Topic

java formatter help  RSS feed

 
Gourav Bansal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In java we have decimal format by which we can represent any number. The format is like that '###.###' but in oracle the format is represented like '999.999'. Is there any java API which will convert the java format to Oracle format.

Another option that I have to replace the # with the 9 and return that. Please suggest if we have any API for that conversion.

Gourav
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
544
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you would need to write it yourself. If the only difference is changing # to 9, at least it is a one liner.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!