Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 11:25:03 +0000



Post From: Bug Report - Or Unexpected Feature -Study -- Text Display for Study

[2014-10-15 21:56:14]
ganz - Posts: 1048
SC Support

Looks like ACSIL abs() rounds a value.


#include "sierrachart.h"

SCDLLName("abs1");

SCSFExport scsf_bm_abs1(SCStudyInterfaceRef sc)
{
if (sc.SetDefaults)
{
sc.GraphName = "abs1";
sc.StudyDescription = "abs1 @ganz";

sc.Subgraph[0].Name = "abs1";
sc.Subgraph[0].DrawStyle = DRAWSTYLE_BAR;

sc.GraphRegion = 1;
sc.AutoLoop = 1;
sc.FreeDLL = 1;

return;
}


  float val;
  
  val = abs(-5.5);
  
sc.Subgraph[0][sc.Index] = (float) val;

return;
}

djcurcio sorry for this. thnx.