abs function

num abs(
  1. num value
)

Implementation

num abs(num value) => value < 0 ? -value : value;