Support Board
Date/Time: Tue, 24 Dec 2024 18:17:57 +0000
Post From: sc.RoundToTickSize function
[2015-10-24 20:50:32] |
Johnny - Posts: 99 |
I have created subgraphs in my study that use this function in order to round numbers to the instrument ticksize value. When the value format equals the ticksize everything is fine, however when I increase the value format the numbers don't remain rounded to the ticksize value. So, for example with a value format of 0.0000001, 45.24 becomes 45.2399979. From my understanding when I increase the value format beyond ticksize the numbers must be displayed with more decimal points but remain rounded nonetheless. In this case I was expecting the number displayed to be 45.2400000. Does that mean that the function doesn't work properly?
|