I have a lot of lines in my code using math.Abs, like this:
math.Abs(float64(resultA-resultB))
This produces long lines of code (especially when comapring one math.Abs with another). Is there any advice on how to get past this ? How can I refactor, for example, this line ?
if math.Abs(float64(current.(element).value-maxValue)) <
math.Abs(float64(resultA-resultB)) {