Most common problems in those kinds of long equations is caused by float to integer conversions.
Those two equations return a different result. The val2 returns the accurate result and val1 should be modified
Is this the problem?
int1% = 7 flt1# = 3.256 val1# = int1 * flt1 val2# = flt1 * int1
Those two equations return a different result. The val2 returns the accurate result and val1 should be modified
val1# = Float(int1) * flt1to work properly.
Is this the problem?