How to stop automatic rounding up of input variables?

 
I'm trying to input a very small variable into an EA script:

input double mVar = -0.00001;

However it is being rounded to -0.1; this is a significant problem. If I do not declare MyVar as an input variable the value obviously stays as is.

What can I do to prevent this rounding? I haven't been able to find any guidance on this using a search engine, nor in the docs?
Documentation on MQL5: Language Basics / Variables / Input Variables
Documentation on MQL5: Language Basics / Variables / Input Variables
  • www.mql5.com
Input Variables - Variables - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Robert_Clive: I'm trying to input a very small variable into an EA script:

However it is being rounded to -0.1; this is a significant problem. If I do not declare MyVar as an input variable the value obviously stays as is.

What can I do to prevent this rounding? I haven't been able to find any guidance on this using a search engine, nor in the docs?

It does not round up automatically.

Either somewhere in your code, it does that and you need to fix your code or ...

... you have a cached input value, so when the Inputs dialogue box comes up, click on "Reset" to clear the cached values.

 

If you want to see the correct number of digits, convert it to a string with the correct/wanted accuracy.
          question about decima of marketinfo() - MQL4 programming forum (2016)