Extracted from Pike v8.0 release 276 as of 2016-07-29.
   

Method Gmp.mpq()->sgn()


Method sgn

int(-1..1) sgn()