public void testFloatValuePosInfinity(){
  String a="123809648373567356745735.6356789787678287E+200";
  BigDecimal aNumber=new BigDecimal(a);
  float result=Float.POSITIVE_INFINITY;
  assertTrue("incorrect value",aNumber.floatValue() == result);
}

public void testFloatValuePosInfinity ( ) { String a = "123809648373567356745735.6356789787678287E+200" ; BigDecimal aNumber = new BigDecimal ( a ) ; float result = Float . POSITIVE_INFINITY ; assertTrue ( "incorrect value" , aNumber . floatValue ( ) == result ) ; }
float value of a large positive bigdecimal
