Math. equivalent for diff number, how ?

I want to find the difference of between two number as like the diff. of the number of 300 and clip1() any one have a solution ?

I tried with alternate method, math.AngleDifference (a,b) but it’s ok with certain amount but when the ammo is low the number is incorrect.

Thanks in advance.

Oh wow… Did you know you can use operators like + and - in Lua?

oops sure, but I don’t know how to calculate AngleDiff manualy but for normal number any one can help ?

[lua]math.abs( 300 - Clip1 )[/lua]

Really, this should be basic math.

good thanks it’s working