Skip to content
instance method

Float#arg

() -> (::Integer | ::Float)
arg → 0 or Math::PI

Returns 0 if self is positive, Math::PI otherwise.

See also #angle #ceil #abs #coerce also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0