intializing variables error

 

why do i get an error when i initialize my stop as

double stoploss = .0050;

 
What error do you get ?
 
RaptorUK:
What error do you get ?


initialization expected

0050 comma or semicolon expected

 
jeemba2012:


initialization expected

0050 comma or semicolon expected

The error is probably somewhere else in your code . . . you need to post more of it if you want help. If you don't want to post your code look above the line where the error is reported to be.

Alternatively . . . do this . . .

double stoploss =  0.0050;
 
RaptorUK:

The error is probably somewhere else in your code . . . you need to post more of it if you want help. If you don't want to post your code look above the line where the error is reported to be.

Alternatively . . . do this . . .


Thanks it worked when I put the "0" in front of the decimal. 0.0050 instead of .0050
Reason: