Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Exception Error
 Post subject: Exception Error Post rating: 0   New post Posted: Tue 15 Feb, 2011, 14:57 
User avatar

User rating: 0
Joined: Tue 07 Dec, 2010, 10:51
Posts: 39
Good day everyone,

When I review my report after a backtest the following error appears repeatedly:

java.lang.NumberFormatException: For input string: "?" @ MAFractalBreakout.MAFractalBreakout.roundFiveDecimals(MAFractalBreakout.java:442)

Any idea what it means? The function it refers to:

    //+------------------------------------------------------------------+
    //| Round Number Function                                             |
    //+------------------------------------------------------------------+
    double roundFiveDecimals(double d)
    {
       DecimalFormat twoDForm = new DecimalFormat("#.#####");
       return Double.valueOf(twoDForm.format(d));
    }


 
 Post subject: Re: Exception Error Post rating: 0   New post Posted: Thu 09 Jun, 2011, 15:36 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It means that string "?" was passed to Double.valueOf, which it obviously didn't recognize as a numeric value and therefore the conversion failed.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com