This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSS: possibility to evaluate a expression with floating point variables?

hi,

 

I have a expression which contains some floating point variable -when evaluating the expression with Javascript method evaluate,

result is failing even if thecondition is really true.

CoverageSt[i].condition = "(ivahd_max_encode_time < (int)(m3_freq) / 30)" where m3_freq = 200.0

out_condition = Active_DS.expression.evaluate(CoverageSt[i].out_condition);

Replacing the floating value by a integer makes the condition becomes true., i.e if m3_freq =200

any suggestions?

 

I am using ccsv5.1 RC1 on windows XP - with a omap4460 configuration - evaluation is done for variable in the cortex a9 core.

  • hi again,

    the issue was due to the fact the initial valueof the floating variable m3_freq  was not the expected one.

    With correct value expression is evaluated as expected.

    sorry for false alarm

    regards