negative float variable

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Kumaran
Posts: 73
Joined: Tue Apr 08, 2008 5:23 pm
Been thanked: 1 time

negative float variable

Post by Kumaran »

i need to use an negative float variable in my program,
Program:
C1=-4.0;
C2=+0.0405;
C3=-0.0000028;
T1=+0.01;
T2=+0.00008;
rh_lin=C3*rh*rh + C2*rh + C1;
rh_true=(t_C-25)*(T1+T2*rh)+rh_lin
....
likewise,i'm able to get this executed in flowcode,BUT when loading in the simulator, the C1,C2,C3 are getting assigned as zero resulting the main result also as "0." what could be the reason ? :?:

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: negative float variable

Post by Benj »

Hello,

If your using the BoostC compiler then you need to use the floating point funcions located inside the calculation icon properties. There are lots of examples of floats using BoostC available on the forum. The HiTech compiler deals with Float variables a bit better and you do not have to use the functions with this.

Post Reply