abs

func abs<T : SignedNumber>(_: T)

Returns the absolute value of x.

Concrete instances of SignedNumber can specialize this function by conforming to AbsoluteValuable.

Declaration

func abs<T : SignedNumber>(_ x: T) -> T