I'm looking for a method that given 2 floats A and B return the value (A or B) with lower absolute value.

Initially I tried 

```
Math.min(Math.abs(A),Math.abs(B)); 

```

but it is not correct because for example for (-9,-2) return +2 and the return value I'm looking for is -2.

Is there some native/built-in for that?