float to int?

This is example:


Code:
variable temp:=0.0;  // register float variable
variable amt:=0;   // register int variable

temp:=amt+0.0;     // some math with float variables
amt:=floor(temp);  // round to integer

set_local_var(LVAR_var1,local_var(LVAR_var1) + (amt));  // this needs integer values
 
Back
Top