public void testValueOfDoublePos2(){
  double a=12321237576.98788767;
  BigDecimal result=BigDecimal.valueOf(a);
  String res="12321237576.987888";
  int resScale=6;
  assertEquals("incorrect value",res,result.toString());
  assertEquals("incorrect scale",resScale,result.scale());
}

public void testValueOfDoublePos2 ( ) { double a = 12321237576.98788767 ; BigDecimal result = BigDecimal . valueOf ( a ) ; String res = "12321237576.987888" ; int resScale = 6 ; assertEquals ( "incorrect value" , res , result . toString ( ) ) ; assertEquals ( "incorrect scale" , resScale , result . scale ( ) ) ; }
create a bigdecimal from a positive double value
