Search:

Type: Posts; User: copeg

Search: Search took 0.15 seconds.

  1. Replies
    7
    Views
    8,293

    Re: Parsing Scientific Notation from String

    Hmmm, worked for me. Is the exception being thrown with the above number, or something else (post the something else if that is the case)? You may have to fiddle with the DecimalFormat object a bit,...
  2. Replies
    7
    Views
    8,293

    Re: Parsing Scientific Notation from String

    See the DecimalFormat class. You can create the class with a specified format, then parse into a number. Give the code below a shot


    String file = "8.86162677393184E-02";
    try{
    DecimalFormat...
Results 1 to 2 of 2