I need to do a calculation and am having problem.
INT1 := 2/3 * INT2 + 100
The real math is a bit more complicated but that is it essentially. Since 2/3 * INT2 is not an integer the software ignores it and says INT1 is 100.
I guess I'd like to assign it to a real then round up and assign it to an integer. Is this feasible?
Unity does not like any math involving integers and reals.
INT1 := 2/3 * INT2 + 100
The real math is a bit more complicated but that is it essentially. Since 2/3 * INT2 is not an integer the software ignores it and says INT1 is 100.
I guess I'd like to assign it to a real then round up and assign it to an integer. Is this feasible?
Unity does not like any math involving integers and reals.