Discussions

EJB programming & troubleshooting: hello how do i dp the following?

  1. hello how do i dp the following? (2 messages)

    how do we represent a "double" in the standard format?
    for example say we have a number and if we say double it gives us the exponential format, instead i want to get numbers. can u help me on this
  2. Take a look at java.text.NumberFormat. It should provide functionality you're looking for.

    Andy
  3. Ok do this.
    DecimalFormat d = new DecimalFormat();
    d.applyPattern("#.##");
    String s = d.format(argDouble);