public static int BGL_SIGNBIT( double n ) { return (int) (BitConverter.DoubleToInt64Bits( n ) >> 63); }