Double.toString()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jackson

    Double.toString()

    Is there any way not to get scientific notation
    when toString for more than particular digits.



  • Terry Milan

    #2
    Re: Double.toString ()

    If are using Java 5 you can check out printf.

    "Jackson" <Jackson@dddd.c om> wrote in message
    news:toPcf.1927 88$ir4.99012@ed tnps90...[color=blue]
    > Is there any way not to get scientific notation
    > when toString for more than particular digits.
    >
    >
    >[/color]


    Comment

    • Hal Rosser

      #3
      Re: Double.toString ()


      "Jackson" <Jackson@dddd.c om> wrote in message
      news:toPcf.1927 88$ir4.99012@ed tnps90...[color=blue]
      > Is there any way not to get scientific notation
      > when toString for more than particular digits.
      >[/color]
      Take a look at the NumberFormat class and its methods.



      Comment

      Working...