Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 07:16:20 +0000



Post From: v2160 SetFloatLimits error with zero value on SCInput array

[2020-09-18 09:59:11]
binaryduke - Posts: 360
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.
imageScreenshot 2020-09-18 at 10.54.05.png / V - Attached On 2020-09-18 09:58:33 UTC - Size: 64.4 KB - 174 views
Attachment Deleted.