Support Board
Date/Time: Fri, 31 Oct 2025 00:19:17 +0000
v2160 SetFloatLimits error with zero value on SCInput array
View Count: 577
| [2020-09-18 09:59:11] | 
| binaryduke - Posts: 385 | 
| When compiling against the v2160 header, using the .SetFloatLimits function of the SCInput array results in a zero value appearing as 1.1754944e-38 within the inputs. Code: #include "sierrachart.h" SCDLLName("SCFloatInput") /*==========================================================================*/ SCSFExport scsf_FloatInput(SCStudyInterfaceRef sc) { SCInputRef Input_FloatInput = sc.Input[0]; if (sc.SetDefaults) { sc.GraphName = "Float Input"; Input_FloatInput.SetFloatLimits(FLT_MIN, FLT_MAX); Input_FloatInput.SetFloat(0); Input_FloatInput.Name = "Float Input"; sc.GraphRegion = 0; sc.AutoLoop = 1; return; } } Screenshot of input appearance attached. | 
|  Screenshot 2020-09-18 at 10.54.05.png / V - Attached On 2020-09-18 09:58:33 UTC - Size: 64.4 KB - 230 views Attachment Deleted. | 
| [2020-09-18 10:08:56] | 
|  | 
| Yes that does make sense based upon your code. Zero is below the minimum. 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 | 
| [2020-09-18 10:10:29] | 
| binaryduke - Posts: 385 | 
| of course; -FLT_MAX is what I need. Apologies. | 
To post a message in this thread, you need to log in with your Sierra Chart account:
