@Test public void testToInteger03() { assertEquals(Double.POSITIVE_INFINITY, ToInteger(Double.POSITIVE_INFINITY), 0.0); assertEquals(Double.NEGATIVE_INFINITY, ToInteger(Double.NEGATIVE_INFINITY), 0.0); assertEquals(0.0, ToInteger(0.0), 0.0); assertEquals(0.0, ToInteger(0.0), 0.0); assertEquals(-0.0, ToInteger(-0.0), 0.0); }
static Double ToInteger(Object arg) { Double number = ToNumber(arg); if (number.isNaN()) { return 0.0; } if (number.isInfinite()) { return number; } return java.lang.Math.signum(number) * java.lang.Math.floor(java.lang.Math.abs(number)); }
JSAbstractOperations { static Double ToInteger(Object arg) { Double number = ToNumber(arg); if (number.isNaN()) { return 0.0; } if (number.isInfinite()) { return number; } return java.lang.Math.signum(number) * java.lang.Math.floor(java.lang.Math.abs(number)); } }
JSAbstractOperations { static Double ToInteger(Object arg) { Double number = ToNumber(arg); if (number.isNaN()) { return 0.0; } if (number.isInfinite()) { return number; } return java.lang.Math.signum(number) * java.lang.Math.floor(java.lang.Math.abs(number)); }  }
JSAbstractOperations { static Double ToInteger(Object arg) { Double number = ToNumber(arg); if (number.isNaN()) { return 0.0; } if (number.isInfinite()) { return number; } return java.lang.Math.signum(number) * java.lang.Math.floor(java.lang.Math.abs(number)); }   }
JSAbstractOperations { static Double ToInteger(Object arg) { Double number = ToNumber(arg); if (number.isNaN()) { return 0.0; } if (number.isInfinite()) { return number; } return java.lang.Math.signum(number) * java.lang.Math.floor(java.lang.Math.abs(number)); }   static final BigInteger UINT_MAX_VALUE; static final Double UINT_MAX_VALUE_D; static final BigInteger SINT_MAX_VALUE; static final BigInteger USHORT_MAX_VALUE; }