Jump to content

mathematical expression


Recommended Posts

The expression I want to use is this :

 

total = x + (( y * 3 ) / 10) + ( z * 6 ) - a - b;

 

Somehow, total gets assigned 0 even when x,y,z,a and b are non zero. Are the brackets causing any error?

 

Also are staments like

m = 0.3 * t;

supported. Or will the 0.3 be rounded off to 0?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...