REAL tag in function - curious transformation

When I put a real tag into my Cicode function the value like 0.127 I see in Debugger Stack Windows 1.226999998 .

What is it ? I tried some real values and got the same result

The trouble is with only tag.

If I put a raw value  0.127 to the CiCode function I see 0.127 in Debugger ...

At the picture below you can see a simple CiCode wich shows the problem is in Citect, not in input pag .....

I noticed it on my input pad ...

Parents
  • Hi Anton,
    Thanks for asking this question in the Citect Community. Can you confirm what format setting you have on the tag ("I_L1_FuelTank_Angle")? E.g. is it ##### or ##.##?
    Can you take a look at the Example project, specifically the LOOPS page where the same FormNumPad is used to enter REAL value into the form to set values. Does this experience the same issue?
Reply
  • Hi Anton,
    Thanks for asking this question in the Citect Community. Can you confirm what format setting you have on the tag ("I_L1_FuelTank_Angle")? E.g. is it ##### or ##.##?
    Can you take a look at the Example project, specifically the LOOPS page where the same FormNumPad is used to enter REAL value into the form to set values. Does this experience the same issue?
Children
No Data