Perry Smith Enterprises

Java Questions & Answers

Home / Java Q & A Page 2 / Java Q & A Archive Main Page

9-24-98

parameters

If I understand correctly, parameters from a web page are passed to the applet at strings. The parameters I want to pass are numeric (such as 12.3). How do I convert the string to a double in Java?


Response
9-25-98


      easiest way to convert String to a double is:

      double dVal =
      (new Double(strParam)).doubleValue();

      MikeD


Home / Java Q & A Page 2 / Java Q & A Archive Main Page