method

phase

ruby latest stable - Class: Float
phase()
public

Returns 0 if the value is positive, pi otherwise.