drjohnsmith
Well-known member
Well
there might be a simple explanation, but I thought abs( A - B ) would give us the difference, always positive, but it seems not in arduino land.
whats the fastest way for the code to calculate the absolute difference between two uint_32 numbers ?
is there a simple trick I'm missing over and if then else with a ? type
thanks
there might be a simple explanation, but I thought abs( A - B ) would give us the difference, always positive, but it seems not in arduino land.
whats the fastest way for the code to calculate the absolute difference between two uint_32 numbers ?
is there a simple trick I'm missing over and if then else with a ? type
thanks