method

phase

ruby latest stable - Class: Numeric
phase()
public

Returns 0 if the value is positive, pi otherwise.