labs method

int labs(
  1. int n
)

Computes the absolute value of a long integer.

Implementation

int labs(int n) => n.abs();