question: 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 ( ) ) ; }
target:  Create a BigDecimal from a positive double value