Extracted from Pike v8.0 release 28 as of 2015-09-20.
   

Method Gmp.mpq()->sgn()


Method sgn

int(-1..1) sgn()