Thanks for your reply Lukasz. In practice, I should use BigDecimal to avoid
rounding problems but it doesn't change the fact that 0.0 shouldn't be
thrown up as an invalid conversion for a double.

This works perfectly well, so I can't understand why Struts2 throws "0.0"
out as an error ...

public class Test {

    public static void main(String[] args) {
        double d = Double.parseDouble("0.0");
        System.out.println(d);
    }

}

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Type-conversion-refuses-0.0-for-a-double--tp21738188p21744461.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to