#!/usr/bin/env awk
#
# Returns the absolute value of 'v'
#
# Parameters:
#   - v : the value to return the absolute value of
#
# Dependencies:
#   - None
#
# Examples:
#   - tawk '{ print abs(-42) }' file.txt

function abs(v) {
    return (v < 0 ? -v : v)
}
