You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Here is your code:
Put 3 instead of 2 and it's 0.036
It worked! Thank you. I normalise to 3 and then trim the extra digits after the decimal point.
Can you tell me, is there a standard function to trim H digits after the comma? Like StringSubStr only if it is a fractional number.
That's how it works! Thank you. I normalise to 3 digits and then trim the extra digits after the decimal point.
Can you tell me if there is a standard function to trim H digits after the decimal point? Like StringSubStr only if it is a fractional number.
If you're talking about trimming digits when outputting to the screen (log), then DoubleToString() is for that.
No. DoubleToString works just like NormalizeDouble().
That's how it works! Thank you. I normalise to 3 digits and then trim the extra digits after the decimal point.
Can you tell me if there is a standard function to trim H digits after the decimal point? Like StringSubStr only if it is a fractional number.
Can you tell me if there is a standard function to truncate H digits after the decimal point? Like StringSubStr only if it is a fractional number.
I use one, but it's 'non-standard':
I use one, but it's 'custom':
What's the genius move?
I use one, but it's 'out of the box':
A glitch is detected:
Result: 1.1 1.3 1.4 1.5
With 1.15 there was a discard and with steel numbers there was a rounding.
A glitch is detected:
Result: 1.1 1.3 1.4 1.5
With 1.15 there was a discard and with steel numbers there was a rounding.
Until the developers remove
it
StringLen
The number of characters in the string, not including the trailing zero.
there is nothing you can do about the truncation.