abs

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

Returns the absolute value of x.

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

Declaration

func abs<T : SignedNumberType>(x: T) -> T