Any reason not to combine the Math.abs with the Number conversion? You never use the non-abs'd values anywhere. Alternatively, can we avoid reusing variables? It saves virtually no memory but sacrifices a good amount of readability.