Support Board
Date/Time: Mon, 20 Jan 2025 08:23:02 +0000
Normalize Double function with selected precision
View Count: 1087
[2018-06-07 01:11:10] |
User517260 - Posts: 97 |
Hi! I'm looking for function like "Normalize Double function with selected precision", because result of expression (sc.TickSize >= 0.01 && sc.TickSize < 0.1) in ASCIL study gives false for sc.TickSize = 0.01. If I use (sc.TickSize >= 0.00999 && sc.TickSize < 0.1) - it gives true. I need to decide this problem as soon as possible, because my commercial project now is delayed. I have same problems with math calculations everywere in program. Help me please - I need function or method like "Normalize Double function with selected precision". Waiting for your reply, Alex.
|
[2018-06-07 06:14:17] |
Sierra Chart Engineering - Posts: 104368 |
Have a look at this function to see if it meets your needs: sc.FormattedEvaluateUsingDoubles() This is what we use internally for floating-point comparisons. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-06-08 09:34:45] |
User517260 - Posts: 97 |
Thanks.
|
To post a message in this thread, you need to log in with your Sierra Chart account: