question: public void testValueOfDoubleNeg ( ) { double a = - 65678765876567576.98788767 ; BigDecimal result = BigDecimal . valueOf ( a ) ; String res = "-65678765876567576" ; int resScale = 0 ; assertEquals ( "incorrect value" , res , result . toString ( ) ) ; assertEquals ( "incorrect scale" , resScale , result . scale ( ) ) ; }
target:  Create a BigDecimal from a negative double value