Support Board
Date/Time: Mon, 27 Oct 2025 02:04:50 +0000
Post From: v2160 SetFloatLimits error with zero value on SCInput array
| [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. |
| Attachment Deleted. |
