public void test_LongValueExactFloatPos(){
  float a=9223372036854775806.99999F;
  BigDecimal aNumber=new BigDecimal(a);
  try {
    aNumber.longValueExact();
    fail("java.lang.ArithmeticException isn't thrown after calling longValueExact");
  }
 catch (  java.lang.ArithmeticException ae) {
  }
}

public void test_LongValueExactFloatPos ( ) { float a = 9223372036854775806.99999F ; BigDecimal aNumber = new BigDecimal ( a ) ; try { aNumber . longValueExact ( ) ; fail ( "java.lang.ArithmeticException isn't thrown after calling longValueExact" ) ; } catch ( java . lang . ArithmeticException ae ) { } }
java . math . bigdecimal # longvalueexact ( ) long value of a positive bigdecimal
