abs function

num abs(
  1. num x
)

Implementation

num abs(num x) {
    return x.abs();
}